adams.flow.transformer.pixelselector
Class BottomRightCorner

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by adams.gui.action.AbstractBaseAction
          extended by adams.flow.transformer.pixelselector.AbstractPixelSelectorAction
              extended by adams.flow.transformer.pixelselector.BottomRightCorner
All Implemented Interfaces:
Destroyable, OptionHandler, ActionListener, Serializable, Cloneable, EventListener, Action

public class BottomRightCorner
extends AbstractPixelSelectorAction

Allows the user to select a pixel location of the bottom-right corner.
Stores the location in 'Pixel.Right' and 'Pixel.Bottom'.

Version:
$Revision: 4776 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
static String PIXEL_BOTTOM
          the pixel location bottom.
static String PIXEL_RIGHT
          the pixel location right.
 
Fields inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorAction
m_OptionManager, MOUSE_POSITION, PANEL, PIXEL_POSITION
 
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
BottomRightCorner()
           
 
Method Summary
protected  boolean doProcessAction(ActionEvent e)
          Reacts to the action event.
protected  String getTitle()
          Returns the title of the action (used as menu item text).
 String globalInfo()
          Returns a string describing the object.
 
Methods inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorAction
actionPerformed, check, cleanUpOptions, defineOptions, destroy, finishInit, getMousePosition, getOptionManager, getPanel, getPixelPosition, hasMousePosition, hasPanel, hasPixelPosition, initialize, newOptionManager, reset, setMousePosition, setPanel, setPixelPosition, toCommandLine, toString
 
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

PIXEL_RIGHT

public static final String PIXEL_RIGHT
the pixel location right.

See Also:
Constant Field Values

PIXEL_BOTTOM

public static final String PIXEL_BOTTOM
the pixel location bottom.

See Also:
Constant Field Values
Constructor Detail

BottomRightCorner

public BottomRightCorner()
Method Detail

globalInfo

public String globalInfo()
Returns a string describing the object.

Specified by:
globalInfo in class AbstractPixelSelectorAction
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:
getTitle in class AbstractPixelSelectorAction
Returns:
the title

doProcessAction

protected boolean doProcessAction(ActionEvent e)
Reacts to the action event.

Specified by:
doProcessAction in class AbstractPixelSelectorAction
Parameters:
e - the event
Returns:
true if to update the report table


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.