Package com.luciad.view
Class TLcdMoveLayerAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.TLcdMoveLayerAction
- All Implemented Interfaces:
ILcdAction,ILcdPropertyChangeSource,ActionListener,Serializable,EventListener
This is an
ILcdAction that changes the position of a given
ILcdLayer in an ILcdLayered. The position change
depends on the move command associated with this ILcdAction.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant to indicate an action that moves a layer to the bottom of the list.static final StringConstant to indicate an action that moves a layer one position down in the list.static final StringConstant to indicate an action that moves a layer to the top of the list.static final StringConstant to indicate an action that moves a layer one position up in the list.Fields inherited from class com.luciad.gui.ALcdAction
changeSupportFields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor: anILcdLayered, anILcdLayerand aMoveCommandstill must be set.TLcdMoveLayerAction(ILcdLayered aLayered, ILcdLayer[] aLayers, String aMoveCommand) Constructor with anILcdLayered, anILcdLayerarray and aMoveCommand.TLcdMoveLayerAction(ILcdLayered aLayered, ILcdLayer aLayer, String aMoveCommand) Constructor with anILcdLayered, anILcdLayerand aMoveCommand. -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms thisILcdAction.getLayer()Gets the firstILcdLayerassociated to thisILcdAction.Gets theILcdLayeredassociated to thisILcdAction.Gets theILcdLayers associated to thisILcdActionGets theMoveCommandassociated with thisILcdAction.booleanDeprecated.This method has been deprecated.voidSets theILcdLayeraLayerto thisILcdAction.voidsetLayered(ILcdLayered aLayered) Sets theILcdLayered aLayeredto thisILcdAction.voidSets theILcdLayersaLayersto thisILcdAction.voidsetMoveCommand(String aMoveCommand) Sets theMoveCommandto thisILcdAction.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.Methods inherited from class com.luciad.gui.ALcdAction
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.gui.ILcdAction
getValue, isEnabled, putValue, setEnabledMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Field Details
-
MOVE_TOP
Constant to indicate an action that moves a layer to the top of the list.- See Also:
-
MOVE_BOTTOM
Constant to indicate an action that moves a layer to the bottom of the list.- See Also:
-
MOVE_UP
Constant to indicate an action that moves a layer one position up in the list.- See Also:
-
MOVE_DOWN
Constant to indicate an action that moves a layer one position down in the list.- See Also:
-
-
Constructor Details
-
TLcdMoveLayerAction
public TLcdMoveLayerAction()Default constructor: anILcdLayered, anILcdLayerand aMoveCommandstill must be set. -
TLcdMoveLayerAction
Constructor with anILcdLayered, anILcdLayerand aMoveCommand.- Parameters:
aLayered- the layered on which actions will be performed.aLayer- the layer in the layered on which actions will be performed.aMoveCommand- the action to perform on the layer given.
-
TLcdMoveLayerAction
Constructor with anILcdLayered, anILcdLayerarray and aMoveCommand.- Parameters:
aLayered- the layered on which actions will be performed.aLayers- the layers in the layered on which actions will be performed.aMoveCommand- the action to perform on the layers given.
-
-
Method Details
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen only the informative, warning and error log messages are recorded.- Overrides:
setTraceOnin classALcdAction- Parameters:
aTraceOn- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrueif tracing is enabled for this class.- Overrides:
isTraceOnin classALcdAction- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getMoveCommand
Gets theMoveCommandassociated with thisILcdAction.- Returns:
- one of MOVE_TOP, MOVE_BOTTOM, MOVE_UP, MOVE_DOWN.
- See Also:
-
setMoveCommand
Sets theMoveCommandto thisILcdAction.- Parameters:
aMoveCommand- one of MOVE_TOP, MOVE_BOTTOM, MOVE_UP, MOVE_DOWN.- See Also:
-
setLayer
Sets theILcdLayeraLayerto thisILcdAction.- Parameters:
aLayer- the layer on which actions will be performed.- See Also:
-
setLayers
Sets theILcdLayersaLayersto thisILcdAction.- Parameters:
aLayers- the layers on which actions will be performed- See Also:
-
getLayer
Gets the firstILcdLayerassociated to thisILcdAction.- Returns:
- the first layer on which actions will be performed.
- See Also:
-
getLayers
Gets theILcdLayers associated to thisILcdAction- Returns:
- the layers on which actions will be performed
- See Also:
-
setLayered
Sets theILcdLayered aLayeredto thisILcdAction.- Parameters:
aLayered- the layered on which actions will be performed.- See Also:
-
getLayered
Gets theILcdLayeredassociated to thisILcdAction.- Returns:
- the layered on which actions will be performed.
- See Also:
-
actionPerformed
Performs thisILcdAction. ANullPointerExceptionwill be thrown if one of the properties isnull.- Specified by:
actionPerformedin interfaceActionListener- See Also:
-