JSci.instruments
Class RectangularROI

java.lang.Object
  extended by java.awt.event.MouseMotionAdapter
      extended by JSci.instruments.ROIAdapter
          extended by 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


Constructor Summary
RectangularROI(int x0, int y0, int x1, int y1)
           
 
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 JSci.instruments.ROIAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectangularROI

public RectangularROI(int x0,
                      int y0,
                      int x1,
                      int y1)
Method Detail

getShape

public java.awt.Shape getShape()
Specified by:
getShape in interface ROI
Specified by:
getShape in 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:
setComponent in interface ROI
Specified by:
setComponent in 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:
paint in interface ROI
Specified by:
paint in class ROIAdapter
Parameters:
g - the Graphics where to paint the ROI

mousePressed

public void mousePressed(java.awt.event.MouseEvent event)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class ROIAdapter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent event)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class ROIAdapter

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent event)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class java.awt.event.MouseMotionAdapter

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent event)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class java.awt.event.MouseMotionAdapter