Class TLcyMapRotationAddOn

java.lang.Object
com.luciad.lucy.addons.ALcyAddOn
com.luciad.lucy.addons.map.TLcyMapRotationAddOn

public class TLcyMapRotationAddOn extends ALcyAddOn
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 Details Link icon

    • MAP_ROTATION_GROUP_DESCRIPTOR Link icon

      public static final TLcyGroupDescriptor MAP_ROTATION_GROUP_DESCRIPTOR
  • Constructor Details Link icon

    • TLcyMapRotationAddOn Link icon

      public TLcyMapRotationAddOn()
  • Method Details Link icon

    • plugInto Link icon

      public void plugInto(ILcyLucyEnv aLucyEnv)
      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.
      Specified by:
      plugInto in class ALcyAddOn
      Parameters:
      aLucyEnv - The lucy environment to plug into.
      See Also:
    • unplugFrom Link icon

      public void unplugFrom(ILcyLucyEnv aLucyEnv)
      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 class ALcyAddOn
      Parameters:
      aLucyEnv - The lucy environment to unplug from.
      See Also:
    • isApplicationPaneActive Link icon

      public boolean isApplicationPaneActive()
      Returns true if the ILcyApplicationPane is currently active, false otherwise.
      Returns:
      true if the ILcyApplicationPane is currently active, false otherwise.
      See Also:
    • setApplicationPaneActive Link icon

      public void setApplicationPaneActive(boolean aActive)
      Sets the active state of the map rotation ILcyApplicationPane. Active means the ILcyApplicationPane is present in the user interface.

      Note that loading a workspace can change this property.

      Parameters:
      aActive - True to make sure the ILcyApplicationPane is present in the user interface, false to make sure the ILcyApplicationPane is not present.
    • getMapComponentArray Link icon

      public ILcyMapComponent[] 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 Link icon

      public void setMapComponentArray(ILcyMapComponent[] aMapComponentArray)
      Set the list of ILcyMapComponents 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 Link icon

      public Dimension getSize()
    • setSize Link icon

      public void setSize(Dimension aSize)
    • isDisplayArrow Link icon

      public boolean isDisplayArrow()
    • setDisplayArrow Link icon

      public void setDisplayArrow(boolean aDisplayArrow)
    • is4SideArrow Link icon

      public boolean is4SideArrow()
    • set4SideArrow Link icon

      public void set4SideArrow(boolean a4SideArrow)
    • isOpaque Link icon

      public boolean isOpaque()
    • setOpaque Link icon

      public void setOpaque(boolean aOpaque)
    • getCompassFillColor Link icon

      public Color getCompassFillColor()
    • setCompassFillColor Link icon

      public void setCompassFillColor(Color aCompassFillColor)
    • getArrowColor Link icon

      public Color getArrowColor()
    • setArrowColor Link icon

      public void setArrowColor(Color aArrowColor)
    • getArrowColorShadow Link icon

      public Color getArrowColorShadow()
    • setArrowColorShadow Link icon

      public void setArrowColorShadow(Color aArrowColorShadow)
    • getNorthArrowColor Link icon

      public Color getNorthArrowColor()
    • setNorthArrowColor Link icon

      public void setNorthArrowColor(Color aArrowColor)
    • getNorthArrowColorShadow Link icon

      public Color getNorthArrowColorShadow()
    • setNorthArrowColorShadow Link icon

      public void setNorthArrowColorShadow(Color aArrowColorShadow)
    • getLineColor Link icon

      public Color getLineColor()
    • setLineColor Link icon

      public void setLineColor(Color aLineColor)
    • isClassTraceOn Link icon

      @Deprecated public static boolean isClassTraceOn()
      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.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • 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.