JSci.instruments
Class ROIAdapter
java.lang.Object
java.awt.event.MouseMotionAdapter
JSci.instruments.ROIAdapter
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, ROI
- Direct Known Subclasses:
- RectangularROI, TwoROI
- public abstract class ROIAdapter
- extends java.awt.event.MouseMotionAdapter
- implements ROI, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
A Region Of Interest class adapter
Method Summary |
abstract java.awt.Shape |
getShape()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
abstract void |
paint(java.awt.Graphics g)
Called by the Player: draw the ROI |
abstract void |
setComponent(java.awt.Component c)
Called by the Player: set the component where to display the ROI |
Methods inherited from class java.awt.event.MouseMotionAdapter |
mouseDragged, mouseMoved |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseMotionListener |
mouseDragged, mouseMoved |
ROIAdapter
public ROIAdapter()
getShape
public abstract java.awt.Shape getShape()
- Specified by:
getShape
in interface ROI
- Returns:
- the Shape of the ROI
setComponent
public abstract void setComponent(java.awt.Component c)
- Description copied from interface:
ROI
- Called by the Player: set the component where to display the ROI
- Specified by:
setComponent
in interface ROI
- Parameters:
c
- The Component where to display the ROI
paint
public abstract void paint(java.awt.Graphics g)
- Description copied from interface:
ROI
- Called by the Player: draw the ROI
- Specified by:
paint
in interface ROI
- Parameters:
g
- the Graphics where to paint the ROI
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener