Package com.luciad.lucy.addons.map
Class TLcyMapRotationAddOn
java.lang.Object
com.luciad.lucy.addons.ALcyAddOn
com.luciad.lucy.addons.map.TLcyMapRotationAddOn
Adds a menu item that opens a panel that allows to manually rotate the map. Also adds a menu item
to add a compass icon to a map, indicating the north.
The application pane can be programmatically activated using
setApplicationPaneActive(boolean)
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the array of map components on which the map rotation panel works.getSize()
boolean
boolean
Returnstrue
if theILcyApplicationPane
is currently active,false
otherwise.static boolean
Deprecated.This method has been deprecated.boolean
boolean
isOpaque()
void
plugInto
(ILcyLucyEnv aLucyEnv) Plugs this addon into the given lucy environment.void
set4SideArrow
(boolean a4SideArrow) void
setApplicationPaneActive
(boolean aActive) Sets the active state of the map rotationILcyApplicationPane
.void
setArrowColor
(Color aArrowColor) void
setArrowColorShadow
(Color aArrowColorShadow) static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setCompassFillColor
(Color aCompassFillColor) void
setDisplayArrow
(boolean aDisplayArrow) void
setLineColor
(Color aLineColor) void
setMapComponentArray
(ILcyMapComponent[] aMapComponentArray) Set the list ofILcyMapComponent
s on which the map rotation panel should work.void
setNorthArrowColor
(Color aArrowColor) void
setNorthArrowColorShadow
(Color aArrowColorShadow) void
setOpaque
(boolean aOpaque) void
void
unplugFrom
(ILcyLucyEnv aLucyEnv) Unplugs this addon from the given Lucy environment.Methods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Field Details
-
MAP_ROTATION_GROUP_DESCRIPTOR
-
-
Constructor Details
-
TLcyMapRotationAddOn
public TLcyMapRotationAddOn()
-
-
Method Details
-
plugInto
Description copied from class:ALcyAddOn
Plugs this addon into the given lucy environment. It is in the implementation of this method that the addon adds its functionality to the Lucy backend. -
unplugFrom
Description copied from class:ALcyAddOn
Unplugs this addon from the given Lucy environment. It removes the functionality previously added to the Lucy backend.- Specified by:
unplugFrom
in classALcyAddOn
- Parameters:
aLucyEnv
- The lucy environment to unplug from.- See Also:
-
isApplicationPaneActive
public boolean isApplicationPaneActive()Returnstrue
if theILcyApplicationPane
is currently active,false
otherwise.- Returns:
true
if theILcyApplicationPane
is currently active,false
otherwise.- See Also:
-
setApplicationPaneActive
public void setApplicationPaneActive(boolean aActive) Sets the active state of the map rotationILcyApplicationPane
. Active means theILcyApplicationPane
is present in the user interface. Note that loading a workspace can change this property.- Parameters:
aActive
-True
to make sure theILcyApplicationPane
is present in the user interface,false
to make sure theILcyApplicationPane
is not present.
-
getMapComponentArray
Retrieve the array of map components on which the map rotation panel works.- Returns:
- A list of map components, null if there are no map components on the map rotation panel.
-
setMapComponentArray
Set the list ofILcyMapComponent
s on which the map rotation panel should work. If there is only one object in this list, no ComboBox will be displayed.- Parameters:
aMapComponentArray
- Array of map components.
-
getSize
-
setSize
-
isDisplayArrow
public boolean isDisplayArrow() -
setDisplayArrow
public void setDisplayArrow(boolean aDisplayArrow) -
is4SideArrow
public boolean is4SideArrow() -
set4SideArrow
public void set4SideArrow(boolean a4SideArrow) -
isOpaque
public boolean isOpaque() -
setOpaque
public void setOpaque(boolean aOpaque) -
getCompassFillColor
-
setCompassFillColor
-
getArrowColor
-
setArrowColor
-
getArrowColorShadow
-
setArrowColorShadow
-
getNorthArrowColor
-
setNorthArrowColor
-
getNorthArrowColorShadow
-
setNorthArrowColorShadow
-
getLineColor
-
setLineColor
-
isClassTraceOn
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.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
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.
-