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
Modifier and TypeFieldDescriptionstatic final String
Constant to indicate an action that moves a layer to the bottom of the list.static final String
Constant to indicate an action that moves a layer one position down in the list.static final String
Constant to indicate an action that moves a layer to the top of the list.static final String
Constant to indicate an action that moves a layer one position up in the list.Fields inherited from class com.luciad.gui.ALcdAction
changeSupport
Fields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
-
Constructor Summary
ConstructorDescriptionDefault constructor: anILcdLayered
, anILcdLayer
and aMoveCommand
still must be set.TLcdMoveLayerAction
(ILcdLayered aLayered, ILcdLayer[] aLayers, String aMoveCommand) Constructor with anILcdLayered
, anILcdLayer
array and aMoveCommand
.TLcdMoveLayerAction
(ILcdLayered aLayered, ILcdLayer aLayer, String aMoveCommand) Constructor with anILcdLayered
, anILcdLayer
and aMoveCommand
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs thisILcdAction
.getLayer()
Gets the firstILcdLayer
associated to thisILcdAction
.Gets theILcdLayered
associated to thisILcdAction
.Gets theILcdLayer
s associated to thisILcdAction
Gets theMoveCommand
associated with thisILcdAction
.boolean
Deprecated.This method has been deprecated.void
Sets theILcdLayer
aLayer
to thisILcdAction
.void
setLayered
(ILcdLayered aLayered) Sets theILcdLayered aLayered
to thisILcdAction
.void
Sets theILcdLayer
saLayers
to thisILcdAction
.void
setMoveCommand
(String aMoveCommand) Sets theMoveCommand
to thisILcdAction
.void
setTraceOn
(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, setShortDescription
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.gui.ILcdAction
getValue, isEnabled, putValue, setEnabled
Methods 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
, anILcdLayer
and aMoveCommand
still must be set. -
TLcdMoveLayerAction
Constructor with anILcdLayered
, anILcdLayer
and 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
, anILcdLayer
array 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 eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Overrides:
setTraceOn
in 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.Returnstrue
if tracing is enabled for this class.- Overrides:
isTraceOn
in classALcdAction
- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getMoveCommand
Gets theMoveCommand
associated with thisILcdAction
.- Returns:
- one of MOVE_TOP, MOVE_BOTTOM, MOVE_UP, MOVE_DOWN.
- See Also:
-
setMoveCommand
Sets theMoveCommand
to thisILcdAction
.- Parameters:
aMoveCommand
- one of MOVE_TOP, MOVE_BOTTOM, MOVE_UP, MOVE_DOWN.- See Also:
-
setLayer
Sets theILcdLayer
aLayer
to thisILcdAction
.- Parameters:
aLayer
- the layer on which actions will be performed.- See Also:
-
setLayers
Sets theILcdLayer
saLayers
to thisILcdAction
.- Parameters:
aLayers
- the layers on which actions will be performed- See Also:
-
getLayer
Gets the firstILcdLayer
associated to thisILcdAction
.- Returns:
- the first layer on which actions will be performed.
- See Also:
-
getLayers
Gets theILcdLayer
s associated to thisILcdAction
- Returns:
- the layers on which actions will be performed
- See Also:
-
setLayered
Sets theILcdLayered aLayered
to thisILcdAction
.- Parameters:
aLayered
- the layered on which actions will be performed.- See Also:
-
getLayered
Gets theILcdLayered
associated to thisILcdAction
.- Returns:
- the layered on which actions will be performed.
- See Also:
-
actionPerformed
Performs thisILcdAction
. ANullPointerException
will be thrown if one of the properties isnull
.- Specified by:
actionPerformed
in interfaceActionListener
- See Also:
-