JSci.instruments
Class RectangularROI

java.lang.Object
  extended byjava.awt.event.MouseMotionAdapter
      extended byJSci.instruments.ROIAdapter
          extended byJSci.instruments.RectangularROI
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, 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

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

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

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)

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent event)