Class TLcyLspProjectionActiveSettable

java.lang.Object
com.luciad.lucy.gui.ALcyActiveSettable
com.luciad.lucy.map.action.lightspeed.TLcyLspProjectionActiveSettable
All Implemented Interfaces:
ILcyActiveSettable, ILcdPropertyChangeSource, Serializable

public class TLcyLspProjectionActiveSettable extends ALcyActiveSettable

Active settable that enables a given world reference on the given view when activated. It also switches the view to 2D or 3D, depending on the constructor parameters.

The active settable is active (e.g. its corresponding toggle button is pressed) when the reference of the view equals the reference given to the constructor. Third parties are also allowed to change the reference of the view, this active settable simply updates its active state accordingly.

Since:
2012.0
See Also:
  • Constructor Details

    • TLcyLspProjectionActiveSettable

      public TLcyLspProjectionActiveSettable(ILspView aView, ILcdProjection aProjection)
      Creates a new TLcyLspProjectionActiveSettable that activates the given projection, and switches the view to 2D.
      Parameters:
      aView - The view whose projection should be updated.
      aProjection - The projection to set to the view. It is applied using a grid reference, with a WGS 84 geodetic datum.
    • TLcyLspProjectionActiveSettable

      public TLcyLspProjectionActiveSettable(ILspView aView, ILcdXYZWorldReference aReference, boolean a3D)
      Creates a new TLcyLspProjectionActiveSettable. It sets the given reference to the view, and changes it to either 2D or 3D, depending on a3D.
      Parameters:
      aView - The view whose world reference should be updated.
      aReference - The reference to set.
      a3D - True if the view should be changed to 3D, false if it should be changed to 2D.
  • Method Details

    • isActive

      public boolean isActive()
      Description copied from interface: ILcyActiveSettable
      Returns true if the state of this object is active, false if the state is inactive. As for every property: whenever the return value of this method changes, a property change event must be fired (see ILcyActiveSettable.setActive(boolean)).
      Returns:
      true if the state of this object is active, false if the state is inactive.
      See Also:
    • setActive

      public void setActive(boolean aActive)
      Description copied from interface: ILcyActiveSettable
      Sets the active state of this object. When the new state is different from the previous state, a certain action will need to be performed. Also a property change event will be fired in such a case. If no property change event is fired, synchronization between this ILcyActiveSettable and the GUI widget representing it will probably fail (e.g. the checkbox will not change state).

      Note: refer to Implementing Bound Property Support Within a Bean for an example about firing a property change.

      Parameters:
      aActive - True if the new state is active, false if the new state is inactive.
      See Also: