Class TLcdSetProjectionAction
- All Implemented Interfaces:
ILcdAction
,ILcdPropertyChangeSource
,ActionListener
,Serializable
,EventListener
ILcdAction
will set
a given ILcdProjection
to a given ILcdGXYView
(both are given in the constructor).- See Also:
-
Field Summary
Fields inherited from class com.luciad.gui.ALcdAction
changeSupport
Fields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
-
Constructor Summary
ConstructorDescriptionTLcdSetProjectionAction
(ILcdProjection aProjection, String aActionName, ILcdGXYView aGXYView) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent aActionEvent) Deprecated.This method will, given anActionEvent
aActionEvent, set the property of XYWorldReference of theILcdGXYView
of thisTLcdSetProjectionAction
to to theILcdProjection
of thisTLcdSetProjectionAction
.protected void
Deprecated.This method gets theILcdProjection
of theILcdGXYView
passed in the constructor method, and tries to adjust theILcdProjection
of this action to fit as much as possible to theILcdProjection
currently active in theILcdGXYView
.Methods inherited from class com.luciad.gui.ALcdAction
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
-
Constructor Details
-
TLcdSetProjectionAction
public TLcdSetProjectionAction(ILcdProjection aProjection, String aActionName, ILcdGXYView aGXYView) Deprecated.
-
-
Method Details
-
actionPerformed
Deprecated.This method will, given anActionEvent
aActionEvent, set the property of XYWorldReference of theILcdGXYView
of thisTLcdSetProjectionAction
to to theILcdProjection
of thisTLcdSetProjectionAction
. It tries to adjust theILcdProjection
of this action to fit as much as possible to theILcdProjection
currently active in theILcdGXYView
.For example, consider that the
ILcdprojection
of theILcdGXYView
is currently aILcdCylindrical
which central meridian is lon = 50degrees, and consider theILcdProjection
of this action is aILcdAzimuthal
. It means that this action will replace the currentILcdCylindrical
projection of theILcdGXYView
by aILcdAzimuthal
projection. We would like that the lon attribute of theILcdCylindrical
projection to be 50degrees also. -
adjustMyProjection
protected void adjustMyProjection()Deprecated.This method gets theILcdProjection
of theILcdGXYView
passed in the constructor method, and tries to adjust theILcdProjection
of this action to fit as much as possible to theILcdProjection
currently active in theILcdGXYView
.For example, consider that the
ILcdprojection
of theILcdGXYView
is currently aILcdCylindrical
which central meridian is lon = 50degrees, and consider theILcdProjection
of this action is aILcdAzimuthal
. It means that this action will replace the currentILcdCylindrical
projection of theILcdGXYView
by aILcdAzimuthal
projection. We would like that the lon attribute of theILcdCylindrical
projection to be 50degrees also. This method will be called in the actionPerformed method just before setting this actionILcdprojection
to itsILcdGXYView
.
-