Class TLcdMoveLayerAction

java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.TLcdMoveLayerAction
All Implemented Interfaces:
ILcdAction, ILcdPropertyChangeSource, ActionListener, Serializable, EventListener

public class TLcdMoveLayerAction extends ALcdAction implements ILcdAction
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 Details Link icon

    • MOVE_TOP Link icon

      public static final String MOVE_TOP
      Constant to indicate an action that moves a layer to the top of the list.
      See Also:
    • MOVE_BOTTOM Link icon

      public static final String MOVE_BOTTOM
      Constant to indicate an action that moves a layer to the bottom of the list.
      See Also:
    • MOVE_UP Link icon

      public static final String MOVE_UP
      Constant to indicate an action that moves a layer one position up in the list.
      See Also:
    • MOVE_DOWN Link icon

      public static final String MOVE_DOWN
      Constant to indicate an action that moves a layer one position down in the list.
      See Also:
  • Constructor Details Link icon

    • TLcdMoveLayerAction Link icon

      public TLcdMoveLayerAction()
      Default constructor: an ILcdLayered, an ILcdLayer and a MoveCommand still must be set.
    • TLcdMoveLayerAction Link icon

      public TLcdMoveLayerAction(ILcdLayered aLayered, ILcdLayer aLayer, String aMoveCommand)
      Constructor with an ILcdLayered, an ILcdLayer and a MoveCommand.
      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 Link icon

      public TLcdMoveLayerAction(ILcdLayered aLayered, ILcdLayer[] aLayers, String aMoveCommand)
      Constructor with an ILcdLayered, an ILcdLayer array and a MoveCommand.
      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 Link icon

    • setTraceOn Link icon

      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 either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Overrides:
      setTraceOn in class ALcdAction
      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 Link icon

      public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Overrides:
      isTraceOn in class ALcdAction
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • getMoveCommand Link icon

      public String getMoveCommand()
      Gets the MoveCommand associated with this ILcdAction.
      Returns:
      one of MOVE_TOP, MOVE_BOTTOM, MOVE_UP, MOVE_DOWN.
      See Also:
    • setMoveCommand Link icon

      public void setMoveCommand(String aMoveCommand)
      Sets the MoveCommand to this ILcdAction.
      Parameters:
      aMoveCommand - one of MOVE_TOP, MOVE_BOTTOM, MOVE_UP, MOVE_DOWN.
      See Also:
    • setLayer Link icon

      public void setLayer(ILcdLayer aLayer)
      Sets the ILcdLayer aLayer to this ILcdAction.
      Parameters:
      aLayer - the layer on which actions will be performed.
      See Also:
    • setLayers Link icon

      public void setLayers(ILcdLayer[] aLayers)
      Sets the ILcdLayers aLayers to this ILcdAction.
      Parameters:
      aLayers - the layers on which actions will be performed
      See Also:
    • getLayer Link icon

      public ILcdLayer getLayer()
      Gets the first ILcdLayer associated to this ILcdAction.
      Returns:
      the first layer on which actions will be performed.
      See Also:
    • getLayers Link icon

      public ILcdLayer[] getLayers()
      Gets the ILcdLayers associated to this ILcdAction
      Returns:
      the layers on which actions will be performed
      See Also:
    • setLayered Link icon

      public void setLayered(ILcdLayered aLayered)
      Sets the ILcdLayered aLayered to this ILcdAction.
      Parameters:
      aLayered - the layered on which actions will be performed.
      See Also:
    • getLayered Link icon

      public ILcdLayered getLayered()
      Gets the ILcdLayered associated to this ILcdAction.
      Returns:
      the layered on which actions will be performed.
      See Also:
    • actionPerformed Link icon

      public void actionPerformed(ActionEvent ae)
      Performs this ILcdAction. A NullPointerException will be thrown if one of the properties is null.
      Specified by:
      actionPerformed in interface ActionListener
      See Also: