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 Link icon

    • TLcyStartNewMapComponentAction Link icon

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

    • setClassTraceOn Link icon

      @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 Link icon

      @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 Link icon

      @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 Link icon

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

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

      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 Link icon

      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 Link icon

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

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

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

      public void actionPerformed(ActionEvent aActionEvent)
    • createAndAddMapComponent Link icon

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