Class TLcyStartNewMapComponentAction

java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.lucy.map.action.TLcyStartNewMapComponentAction
All Implemented Interfaces:
ILcdAction, ILcdPropertyChangeSource, ActionListener, Serializable, EventListener

public class TLcyStartNewMapComponentAction extends ALcdAction
Action that creates a new ILcyMapComponent. The new map will be put in an application pane created by the application pane factory of the associated lucy environment, and it will be added to the map manager of the associated lucy environment, unless another map manager is explicitly set.

See Also:
  • Constructor Details

    • TLcyStartNewMapComponentAction

      public TLcyStartNewMapComponentAction()
      Creates a new TLcyStartNewMapComponentAction. One will need to set the lucy env before this action becomes useful.
      See Also:
  • Method Details

    • setClassTraceOn

      @Deprecated public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • setTraceOn

      @Deprecated 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

      @Deprecated 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.
    • getInitialAppSize

      public Dimension getInitialAppSize()
      Returns the initial application pane size.
      Returns:
      the initial application pane size.
      See Also:
    • setInitialAppSize

      public void setInitialAppSize(Dimension aAppSize)
      Sets the initial application pane size of map components that are going to be created.
      Parameters:
      aAppSize - The dimension to set.
      See Also:
    • getApplicationPaneType

      public int getApplicationPaneType()
      Returns the application pane type of map components that are going to be created.
      Returns:
      the application pane type of map components that are going to be created.
      See Also:
    • setApplicationPaneType

      public void setApplicationPaneType(int aApplicationPaneType)
      Sets the application pane type of map components that are going to be created.
      Parameters:
      aApplicationPaneType - The application pane type.
      See Also:
    • isListenToStatusChanges

      public boolean isListenToStatusChanges()
      Returns true if maps created by this action should send their status events to the ILcyLucyEnv.
      Returns:
      true if maps created by this action should send their status events to the ILcyLucyEnv.
    • setListenToStatusChanges

      public void setListenToStatusChanges(boolean aListenToStatusChanges)
      Sets if maps created by this action should send their status events to the ILcyLucyEnv. This makes sure that the framework knows a heavy task is ongoing (map refresh), so it can inform the user about it (typically with a progress bar).
      Parameters:
      aListenToStatusChanges - True for status changes, false otherwise.
    • setLucyEnv

      public void setLucyEnv(ILcyLucyEnv aLucyEnv)
      Sets the associated lucy environment.
      Parameters:
      aLucyEnv - The lucy environment.
      See Also:
    • getLucyEnv

      public ILcyLucyEnv getLucyEnv()
      Returns the associated lucy environment. Newly created map components will be added to the map manager of this lucy env, unless a map manager is explicitly set using setMapManager. Newly created maps will be put in an application pane created by the application pane factory of this lucy env.
      Returns:
      the lucy environment.
      See Also:
    • getMapManager

      public ILcyMapManager getMapManager()
      Returns the associated map manager. Newly created maps will be added to this map manager, unless it is null. In that case, newly created maps are added to the associated lucy env's map manager.
      Returns:
      the associated map manager.
      See Also:
    • setMapManager

      public void setMapManager(ILcyMapManager aMapManager)
      Sets the associated map manager.
      Parameters:
      aMapManager - The mapmanager
      See Also:
    • getMapComponentFactory

      public ALcyMapComponentFactory getMapComponentFactory()
      Returns the TLcyMapComponentFactory that is used to create a TLcyMapComponent.
      Returns:
      the TLcyMapComponentFactory that is used to create a TLcyMapComponent.
    • setMapComponentFactory

      public void setMapComponentFactory(ALcyMapComponentFactory aMapComponentFactory)
      Sets the TLcyMapComponentFactory that is used to create a TLcyMapComponent.
      Parameters:
      aMapComponentFactory - The factory to use.
    • actionPerformed

      public void actionPerformed(ActionEvent aActionEvent)
    • createAndAddMapComponent

      public ILcyMapComponent createAndAddMapComponent()
      Creates a map component, adds it to the user interface and to the map manager.
      Returns:
      the created map component.