|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ImageCanvas
|
+--pointAction
This class is responsible for dealing with the mouse events relative to the image window.
| Field Summary | |
private boolean |
active
|
static int |
ADD_CROSS
|
static int |
FILE
|
private ImagePlus |
imp
|
static int |
MAGNIFIER
|
static int |
MONOSLICE
|
static int |
MOVE_CROSS
|
static int |
MULTISLICE
|
private pointHandler[] |
ph
|
static int |
REMOVE_CROSS
|
private pointToolbar |
tb
|
static int |
TERMINATE
|
| Constructor Summary | |
pointAction(ImagePlus imp,
pointHandler[] ph,
pointToolbar tb)
This constructor stores a local copy of its parameters and initializes the current control. |
|
| Method Summary | |
void |
focusGained(java.awt.event.FocusEvent e)
Listen to focusGained events. |
void |
focusLost(java.awt.event.FocusEvent e)
Listen to focusGained events. |
private java.lang.String |
getValueAsString(int x,
int y)
|
boolean |
isActive()
Return true if the window is active. |
void |
keyPressed(java.awt.event.KeyEvent e)
Listen to keyPressed events. |
void |
keyReleased(java.awt.event.KeyEvent e)
Listen to keyReleased events. |
void |
keyTyped(java.awt.event.KeyEvent e)
Listen to keyTyped events. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Listen to mouseClicked events. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Listen to mouseDragged events. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Listen to mouseEntered events. |
void |
mouseExited(java.awt.event.MouseEvent e)
Listen to mouseExited events. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Listen to mouseMoved events. |
void |
mousePressed(java.awt.event.MouseEvent e)
Listen to mousePressed events. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Listen to mouseReleased events. |
private void |
setControl()
|
private int |
sieveColors()
|
private void |
updateStatus()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ADD_CROSS
public static final int MOVE_CROSS
public static final int REMOVE_CROSS
public static final int MONOSLICE
public static final int MULTISLICE
public static final int FILE
public static final int TERMINATE
public static final int MAGNIFIER
private ImagePlus imp
private pointHandler[] ph
private pointToolbar tb
private boolean active
| Constructor Detail |
public pointAction(ImagePlus imp,
pointHandler[] ph,
pointToolbar tb)
imp - ImagePlus object where points are being picked.ph - pointHandler object that handles operations.tb - pointToolbar object that handles the toolbar.| Method Detail |
public void focusGained(java.awt.event.FocusEvent e)
focusGained events.
focusGained in interface java.awt.event.FocusListenere - Ignored.public void focusLost(java.awt.event.FocusEvent e)
focusGained events.
focusLost in interface java.awt.event.FocusListenere - Ignored.public boolean isActive()
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed events.
keyPressed in interface java.awt.event.KeyListenere - The expected key codes are as follows:
KeyEvent.VK_DELETE: remove the current landmark;KeyEvent.VK_BACK_SPACE: remove the current landmark;KeyEvent.VK_COMMA: display the previous slice, if any;KeyEvent.VK_DOWN: move down the current landmark;KeyEvent.VK_LEFT: move the current landmark to the left;KeyEvent.VK_PERIOD: display the next slice, if any;KeyEvent.VK_RIGHT: move the current landmark to the right;KeyEvent.VK_SPACE: select the current landmark;KeyEvent.VK_TAB: activate the next landmark;KeyEvent.VK_UP: move up the current landmark.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased events.
keyReleased in interface java.awt.event.KeyListenere - Ignored.public void keyTyped(java.awt.event.KeyEvent e)
keyTyped events.
keyTyped in interface java.awt.event.KeyListenere - Ignored.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked events.
mouseClicked in interface java.awt.event.MouseListenere - Ignored.public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged events. Move the current point
and refresh the image window.
mouseDragged in interface java.awt.event.MouseMotionListenere - Event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered events.
mouseEntered in interface java.awt.event.MouseListenere - Ignored.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited events. Clear the ImageJ status
bar.
mouseExited in interface java.awt.event.MouseListenere - Event.public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved events. Update the ImageJ status
bar.
mouseMoved in interface java.awt.event.MouseMotionListenere - Event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed events. Perform the relevant
action.
mousePressed in interface java.awt.event.MouseListenere - Event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased events.
mouseReleased in interface java.awt.event.MouseListenere - Ignored.
private java.lang.String getValueAsString(int x,
int y)
private void setControl()
private int sieveColors()
private void updateStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||