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.
DEFAULT, LONG_DESCRIPTION, NAME, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, SMALL_SELECTED_ICON, VISIBLE
Constructor and Description |
---|
TLcyLspProjectionActiveSettable(ILspView aView,
ILcdProjection aProjection)
Creates a new
TLcyLspProjectionActiveSettable that activates the given projection,
and switches the view to 2D. |
TLcyLspProjectionActiveSettable(ILspView aView,
ILcdXYZWorldReference aReference,
boolean a3D)
Creates a new
TLcyLspProjectionActiveSettable . |
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Returns true if the state of this object is active, false if the state is inactive.
|
void |
setActive(boolean aActive)
Sets the active state of this object.
|
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, removePropertyChangeListener, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
public TLcyLspProjectionActiveSettable(ILspView aView, ILcdProjection aProjection)
TLcyLspProjectionActiveSettable
that activates the given projection,
and switches the view to 2D.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.public TLcyLspProjectionActiveSettable(ILspView aView, ILcdXYZWorldReference aReference, boolean a3D)
TLcyLspProjectionActiveSettable
. It sets the given reference to
the view, and changes it to either 2D or 3D, depending on a3D
.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.public boolean isActive()
ILcyActiveSettable
ILcyActiveSettable.setActive(boolean)
).ILcyActiveSettable.setActive(boolean)
public void setActive(boolean aActive)
ILcyActiveSettable
aActive
- True if the new state is active, false if the new state is inactive.ILcyActiveSettable.isActive()