JSci.instruments
Class RectangularROI
java.lang.Object
   java.awt.event.MouseMotionAdapter
java.awt.event.MouseMotionAdapter
       JSci.instruments.ROIAdapter
JSci.instruments.ROIAdapter
           JSci.instruments.RectangularROI
JSci.instruments.RectangularROI
- All Implemented Interfaces: 
- java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, ROI
- public class RectangularROI 
- extends ROIAdapter
A rectangular Region Of Interest
 
| Method Summary | 
|  java.awt.Shape | getShape()
 | 
|  void | mouseDragged(java.awt.event.MouseEvent event)
 | 
|  void | mouseMoved(java.awt.event.MouseEvent event)
 | 
|  void | mousePressed(java.awt.event.MouseEvent event)
 | 
|  void | mouseReleased(java.awt.event.MouseEvent event)
 | 
|  void | paint(java.awt.Graphics g)Called by the Player: draw the ROI
 | 
|  void | setComponent(java.awt.Component c)Called by the Player: set the component where to display the ROI
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RectangularROI
public RectangularROI(int x0,
                      int y0,
                      int x1,
                      int y1)
getShape
public java.awt.Shape getShape()
- 
- Specified by:
- getShapein interface- ROI
- Specified by:
- getShapein class- ROIAdapter
 
- 
- Returns:
- the Shape of the ROI
 
setComponent
public 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:
- setComponentin interface- ROI
- Specified by:
- setComponentin class- ROIAdapter
 
- 
- Parameters:
- c- The Component where to display the ROI
 
paint
public void paint(java.awt.Graphics g)
- Description copied from interface: ROI
- Called by the Player: draw the ROI
 
- 
- Specified by:
- paintin interface- ROI
- Specified by:
- paintin class- ROIAdapter
 
- 
- Parameters:
- g- the Graphics where to paint the ROI
 
mousePressed
public void mousePressed(java.awt.event.MouseEvent event)
- 
- Specified by:
- mousePressedin interface- java.awt.event.MouseListener
- Overrides:
- mousePressedin class- ROIAdapter
 
- 
 
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent event)
- 
- Specified by:
- mouseReleasedin interface- java.awt.event.MouseListener
- Overrides:
- mouseReleasedin class- ROIAdapter
 
- 
 
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent event)
- 
- Specified by:
- mouseMovedin interface- java.awt.event.MouseMotionListener
- Overrides:
- mouseMovedin class- java.awt.event.MouseMotionAdapter
 
- 
 
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent event)
- 
- Specified by:
- mouseDraggedin interface- java.awt.event.MouseMotionListener
- Overrides:
- mouseDraggedin class- java.awt.event.MouseMotionAdapter
 
-