|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseMotionAdapter
JSci.instruments.ROIAdapter
JSci.instruments.TwoROI
A ROI made by two rectangular regions, one inside the other (two levels of interest)
Field Summary | |
(package private) javax.swing.JPanel |
ccomp
|
Constructor Summary | |
TwoROI()
|
Method Summary | |
java.awt.Component |
getControlComponent()
|
java.awt.Rectangle |
getOuterRectangle()
|
java.awt.Shape |
getShape()
|
static void |
main(java.lang.String[] args)
Testing... |
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)
draws the ROI. |
void |
setComponent(java.awt.Component c)
Called by the Player: set the component where to display the ROI |
void |
setFactor(int f)
Use this to select the behaviour of the outer rectangle |
void |
setUseFactor(boolean u)
Use this to select the behaviour of the outer rectangle |
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 |
Field Detail |
javax.swing.JPanel ccomp
Constructor Detail |
public TwoROI()
Method Detail |
public void setComponent(java.awt.Component c)
ROI
setComponent
in interface ROI
setComponent
in class ROIAdapter
public void paint(java.awt.Graphics g)
paint
in interface ROI
paint
in class ROIAdapter
public void setUseFactor(boolean u)
u
- The outer rectangle is n-times the inner one?public void setFactor(int f)
f
- The outer rectangle is f-times the inner one.public java.awt.Shape getShape()
getShape
in interface ROI
getShape
in class ROIAdapter
public java.awt.Rectangle getOuterRectangle()
public static void main(java.lang.String[] args)
public java.awt.Component getControlComponent()
getControlComponent
in interface Control
public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class ROIAdapter
public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class ROIAdapter
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |