public class BIGSnake
extends icy.plugin.abstract_.PluginActionable
implements java.awt.event.ActionListener, java.awt.event.KeyListener, plugins.adufour.blocks.lang.Block
Constructor and Description |
---|
BIGSnake() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
activateSnake(SnakeKeeper keeper)
Makes a particular snake active and responsive to interactions.
|
void |
deactivateSnake(SnakeKeeper keeper)
Makes a particular snake inactive and not responsive to interaction.
|
void |
declareInput(plugins.adufour.blocks.util.VarList inputMap) |
void |
declareOutput(plugins.adufour.blocks.util.VarList outputMap) |
boolean |
isActiveSnake(SnakeKeeper keeper)
Returns
true if SnakeKeeper passed is the
active one. |
void |
keyPressed(java.awt.event.KeyEvent e)
Interactions with respect to
KeyEvent to detect the COPY and
PASTE commands. |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
loadSnakeParametersFromInterface()
Retrieves the snake parameters from the GUI and sets them to the active
snake.
|
void |
loadSnakesFromXML()
Load the snakes from an XML file.
|
void |
measureSnakes()
Invokes the external plug-in
ROIMeasures . |
void |
run()
Method executed when launching the plug-in.
|
void |
saveSnakesToXML()
Saves the snakes to an XML file.
|
void |
terminatePlugin()
Prepares the plug-in to be terminated.
|
addIcyFrame, addSequence, getDescriptor, getFocusedImage, getFocusedSequence, getFocusedViewer, getIconResource, getImageResource, getPlugin, getPreferences, getPreferencesRoot, getResource, getResourceAsStream, getResources, getSequences, removeSequence, report
public void run()
run
in interface java.lang.Runnable
run
in interface plugins.adufour.blocks.lang.Block
public void terminatePlugin()
public boolean isActiveSnake(SnakeKeeper keeper)
true
if SnakeKeeper
passed is the
active one.public void activateSnake(SnakeKeeper keeper)
public void deactivateSnake(SnakeKeeper keeper)
public void loadSnakeParametersFromInterface()
public void loadSnakesFromXML()
public void saveSnakesToXML()
public void measureSnakes()
ROIMeasures
.public void keyPressed(java.awt.event.KeyEvent e)
KeyEvent
to detect the COPY and
PASTE commands.keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void declareInput(plugins.adufour.blocks.util.VarList inputMap)
declareInput
in interface plugins.adufour.blocks.lang.Block
public void declareOutput(plugins.adufour.blocks.util.VarList outputMap)
declareOutput
in interface plugins.adufour.blocks.lang.Block