|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
adams.gui.action.AbstractBaseAction
adams.flow.transformer.pixelselector.AbstractPixelSelectorAction
public abstract class AbstractPixelSelectorAction
Ancestor for actions for the PixelSelector interactive transformer.
| Field Summary | |
|---|---|
protected OptionManager |
m_OptionManager
for managing the available options. |
static String |
MOUSE_POSITION
the mouse position key. |
static String |
PANEL
the panel this action is for. |
static String |
PIXEL_POSITION
the pixel position key. |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
AbstractPixelSelectorAction()
Initializes the object. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs. |
String |
check()
Performs a check on the setup. |
void |
cleanUpOptions()
Cleans up the options. |
void |
defineOptions()
Adds options to the internal list of options. |
void |
destroy()
Frees up memory in a "destructive" non-reversible way. |
protected abstract boolean |
doProcessAction(ActionEvent e)
Reacts to the action event. |
protected void |
finishInit()
Finishes the initialization in the constructor. |
Point |
getMousePosition()
Returns the mouse position, if available. |
OptionManager |
getOptionManager()
Returns the option manager. |
PixelSelectorPanel |
getPanel()
Returns the panel, if available. |
Point |
getPixelPosition()
Returns the pixel position, if available. |
protected abstract String |
getTitle()
Returns the title of the action (used as menu item text). |
abstract String |
globalInfo()
Returns a string describing the object. |
boolean |
hasMousePosition()
Checks whether a mouse position is available. |
boolean |
hasPanel()
Checks whether a panel is available. |
boolean |
hasPixelPosition()
Checks whether a pixel position is available. |
protected void |
initialize()
Initializes the members. |
protected OptionManager |
newOptionManager()
Returns a new instance of the option manager. |
protected void |
reset()
Resets the scheme. |
void |
setMousePosition(Point value)
Stores the mouse position in the action. |
void |
setPanel(PixelSelectorPanel value)
Stores the panel in the action. |
void |
setPixelPosition(Point value)
Stores the pixel position in the action. |
String |
toCommandLine()
Returns the commandline string. |
String |
toString()
Returns a string representation of the options. |
| Methods inherited from class adams.gui.action.AbstractBaseAction |
|---|
getAccelerator, getIcon, getMnemonic, getName, getToolTipText, hasAccelerator, hasMnemonic, hasToolTipText, isSelected, setAccelerator, setIcon, setMnemonic, setName, setSelected, setToolTipText |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MOUSE_POSITION
public static final String PIXEL_POSITION
public static final String PANEL
protected OptionManager m_OptionManager
| Constructor Detail |
|---|
public AbstractPixelSelectorAction()
| Method Detail |
|---|
public abstract String globalInfo()
protected void initialize()
initialize in class AbstractBaseActionprotected abstract String getTitle()
protected void reset()
protected OptionManager newOptionManager()
public void defineOptions()
defineOptions in interface OptionHandlerprotected void finishInit()
public OptionManager getOptionManager()
getOptionManager in interface OptionHandlerpublic void cleanUpOptions()
cleanUpOptions in interface OptionHandlerpublic void destroy()
destroy in interface DestroyablecleanUpOptions()public String toString()
toString in class Objectpublic String toCommandLine()
public void setMousePosition(Point value)
value - the current mouse position, null to remove itpublic boolean hasMousePosition()
public Point getMousePosition()
public void setPixelPosition(Point value)
value - the current pixel position, null to remove itpublic boolean hasPixelPosition()
public Point getPixelPosition()
public void setPanel(PixelSelectorPanel value)
value - the panel, null to remove itpublic boolean hasPanel()
public PixelSelectorPanel getPanel()
protected abstract boolean doProcessAction(ActionEvent e)
e - the event
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - the actiondoProcessAction(ActionEvent)public String check()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||