com.dlsc.flexgantt.swing.action.layer
Class LassoModeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
          extended by com.dlsc.flexgantt.swing.action.layer.AbstractLayerContainerAction
              extended by com.dlsc.flexgantt.swing.action.layer.LassoModeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class LassoModeAction
extends AbstractLayerContainerAction

An action which sets the selection mode that will be used by the LassoLayer.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
LassoLayer.setLassoMode(LassoMode), Serialized Form

Field Summary
 
Fields inherited from class com.dlsc.flexgantt.swing.action.layer.AbstractLayerContainerAction
layerContainer
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
LassoModeAction(LayerContainer lc, LassoLayer.LassoMode mode)
          Constructs a new action.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 LassoLayer.LassoMode getMode()
          Returns the selection mode that will be set by the action.
 
Methods inherited from class com.dlsc.flexgantt.swing.action.layer.AbstractLayerContainerAction
getLayerContainer, setLayerContainer
 
Methods inherited from class com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
getToolTipText, 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, toString, wait, wait, wait
 

Constructor Detail

LassoModeAction

public LassoModeAction(LayerContainer lc,
                       LassoLayer.LassoMode mode)
Constructs a new action.

Parameters:
lc - the layer container on which to invoke the action
mode - the selection mode to be set by the action
Since:
1.0
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)

getMode

public LassoLayer.LassoMode getMode()
Returns the selection mode that will be set by the action.

Returns:
the selection mode
Since:
1.0