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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the array of map components on which the map rotation panel works.getSize()booleanbooleanReturnstrueif theILcyApplicationPaneis currently active,falseotherwise.static booleanDeprecated.This method has been deprecated.booleanbooleanisOpaque()voidplugInto(ILcyLucyEnv aLucyEnv) Plugs this addon into the given lucy environment.voidset4SideArrow(boolean a4SideArrow) voidsetApplicationPaneActive(boolean aActive) Sets the active state of the map rotationILcyApplicationPane.voidsetArrowColor(Color aArrowColor) voidsetArrowColorShadow(Color aArrowColorShadow) static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetCompassFillColor(Color aCompassFillColor) voidsetDisplayArrow(boolean aDisplayArrow) voidsetLineColor(Color aLineColor) voidsetMapComponentArray(ILcyMapComponent[] aMapComponentArray) Set the list ofILcyMapComponents on which the map rotation panel should work.voidsetNorthArrowColor(Color aArrowColor) voidsetNorthArrowColorShadow(Color aArrowColorShadow) voidsetOpaque(boolean aOpaque) voidvoidunplugFrom(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:ALcyAddOnPlugs 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:ALcyAddOnUnplugs this addon from the given Lucy environment. It removes the functionality previously added to the Lucy backend.- Specified by:
unplugFromin classALcyAddOn- Parameters:
aLucyEnv- The lucy environment to unplug from.- See Also:
-
isApplicationPaneActive
public boolean isApplicationPaneActive()Returnstrueif theILcyApplicationPaneis currently active,falseotherwise.- Returns:
trueif theILcyApplicationPaneis currently active,falseotherwise.- See Also:
-
setApplicationPaneActive
public void setApplicationPaneActive(boolean aActive) Sets the active state of the map rotationILcyApplicationPane. Active means theILcyApplicationPaneis present in the user interface. Note that loading a workspace can change this property.- Parameters:
aActive-Trueto make sure theILcyApplicationPaneis present in the user interface,falseto make sure theILcyApplicationPaneis 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 ofILcyMapComponents 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.Returnstrueif 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 istruethen 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.
-