Class TopLeftCorner
- java.lang.Object
-
- javax.swing.AbstractAction
-
- adams.gui.action.AbstractBaseAction
-
- adams.flow.transformer.pixelselector.AbstractPixelSelectorAction
-
- adams.flow.transformer.pixelselector.TopLeftCorner
-
- All Implemented Interfaces:
CleanUpHandler,Destroyable,OptionHandler,BaseAction,ActionListener,Serializable,Cloneable,EventListener,Action
public class TopLeftCorner extends AbstractPixelSelectorAction
Allows the user to select a pixel location of the top-left corner.
Stores the location in 'Pixel.Left' and 'Pixel.Top'.
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPIXEL_LEFTthe pixel location left.static StringPIXEL_TOPthe pixel location top.-
Fields inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorAction
m_OptionManager, MOUSE_POSITION, PANEL, PIXEL_POSITION
-
Fields inherited from class adams.gui.action.AbstractBaseAction
ASYNCHRONOUS
-
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
Constructors Constructor Description TopLeftCorner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoProcessAction(ActionEvent e)Reacts to the action event.protected StringgetTitle()Returns the title of the action (used as menu item text).StringglobalInfo()Returns a string describing the object.-
Methods inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorAction
check, cleanUpOptions, defineOptions, destroy, doActionPerformed, finishInit, getMousePosition, getOptionManager, getPanel, getPixelPosition, hasMousePosition, hasPanel, hasPixelPosition, initialize, newOptionManager, reset, setMousePosition, setPanel, setPixelPosition, toCommandLine, toString
-
Methods inherited from class adams.gui.action.AbstractBaseAction
actionPerformed, cleanUp, getAccelerator, getIcon, getMnemonic, getName, getToolTipText, hasAccelerator, hasIcon, hasMnemonic, hasToolTipText, isAsynchronous, isSelected, postActionPerformed, preActionPerformed, setAccelerator, setAsynchronous, setIcon, 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
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
PIXEL_LEFT
public static final String PIXEL_LEFT
the pixel location left.- See Also:
- Constant Field Values
-
PIXEL_TOP
public static final String PIXEL_TOP
the pixel location top.- See Also:
- Constant Field Values
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin classAbstractPixelSelectorAction- Returns:
- a description suitable for displaying in the gui
-
getTitle
protected String getTitle()
Returns the title of the action (used as menu item text).- Specified by:
getTitlein classAbstractPixelSelectorAction- Returns:
- the title
-
doProcessAction
protected boolean doProcessAction(ActionEvent e)
Reacts to the action event.- Specified by:
doProcessActionin classAbstractPixelSelectorAction- Parameters:
e- the event- Returns:
- true if to update the report table
-
-