Package com.luciad.lucy.map.action
Class TLcyStartNewMapComponentAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.lucy.map.action.TLcyStartNewMapComponentAction
- All Implemented Interfaces:
ILcdAction
,ILcdPropertyChangeSource
,ActionListener
,Serializable
,EventListener
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:
-
Field Summary
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
ConstructorDescriptionCreates a newTLcyStartNewMapComponentAction
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent aActionEvent) Creates a map component, adds it to the user interface and to the map manager.int
Returns the application pane type of map components that are going to be created.Returns the initial application pane size.Returns the associated lucy environment.Returns theTLcyMapComponentFactory
that is used to create aTLcyMapComponent
.Returns the associated map manager.boolean
Returns true if maps created by this action should send their status events to the ILcyLucyEnv.boolean
Deprecated.This method has been deprecated.void
setApplicationPaneType
(int aApplicationPaneType) Sets the application pane type of map components that are going to be created.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setInitialAppSize
(Dimension aAppSize) Sets the initial application pane size of map components that are going to be created.void
setListenToStatusChanges
(boolean aListenToStatusChanges) Sets if maps created by this action should send their status events to the ILcyLucyEnv.void
setLucyEnv
(ILcyLucyEnv aLucyEnv) Sets the associated lucy environment.void
setMapComponentFactory
(ALcyMapComponentFactory aMapComponentFactory) Sets theTLcyMapComponentFactory
that is used to create aTLcyMapComponent
.void
setMapManager
(ILcyMapManager aMapManager) Sets the associated map manager.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, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
-
Constructor Details
-
TLcyStartNewMapComponentAction
public TLcyStartNewMapComponentAction()Creates a newTLcyStartNewMapComponentAction
. One will need to set the lucy env before this action becomes useful.- See Also:
-
-
Method Details
-
setClassTraceOn
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 istrue
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.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
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.
-
getInitialAppSize
Returns the initial application pane size.- Returns:
- the initial application pane size.
- See Also:
-
setInitialAppSize
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
Sets the associated lucy environment.- Parameters:
aLucyEnv
- The lucy environment.- See Also:
-
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
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
Sets the associated map manager.- Parameters:
aMapManager
- The mapmanager- See Also:
-
getMapComponentFactory
Returns theTLcyMapComponentFactory
that is used to create aTLcyMapComponent
.- Returns:
- the
TLcyMapComponentFactory
that is used to create aTLcyMapComponent
.
-
setMapComponentFactory
Sets theTLcyMapComponentFactory
that is used to create aTLcyMapComponent
.- Parameters:
aMapComponentFactory
- The factory to use.
-
actionPerformed
-
createAndAddMapComponent
Creates a map component, adds it to the user interface and to the map manager.- Returns:
- the created map component.
-