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
changeSupportFields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionTLcdSetProjectionAction(ILcdProjection aProjection, String aActionName, ILcdGXYView aGXYView) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent aActionEvent) Deprecated.This method will, given anActionEventaActionEvent, set the property of XYWorldReference of theILcdGXYViewof thisTLcdSetProjectionActionto to theILcdProjectionof thisTLcdSetProjectionAction.protected voidDeprecated.This method gets theILcdProjectionof theILcdGXYViewpassed in the constructor method, and tries to adjust theILcdProjectionof this action to fit as much as possible to theILcdProjectioncurrently 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 anActionEventaActionEvent, set the property of XYWorldReference of theILcdGXYViewof thisTLcdSetProjectionActionto to theILcdProjectionof thisTLcdSetProjectionAction. It tries to adjust theILcdProjectionof this action to fit as much as possible to theILcdProjectioncurrently active in theILcdGXYView.For example, consider that the
ILcdprojectionof theILcdGXYViewis currently aILcdCylindricalwhich central meridian is lon = 50degrees, and consider theILcdProjectionof this action is aILcdAzimuthal. It means that this action will replace the currentILcdCylindricalprojection of theILcdGXYViewby aILcdAzimuthalprojection. We would like that the lon attribute of theILcdCylindricalprojection to be 50degrees also. -
adjustMyProjection
protected void adjustMyProjection()Deprecated.This method gets theILcdProjectionof theILcdGXYViewpassed in the constructor method, and tries to adjust theILcdProjectionof this action to fit as much as possible to theILcdProjectioncurrently active in theILcdGXYView.For example, consider that the
ILcdprojectionof theILcdGXYViewis currently aILcdCylindricalwhich central meridian is lon = 50degrees, and consider theILcdProjectionof this action is aILcdAzimuthal. It means that this action will replace the currentILcdCylindricalprojection of theILcdGXYViewby aILcdAzimuthalprojection. We would like that the lon attribute of theILcdCylindricalprojection to be 50degrees also. This method will be called in the actionPerformed method just before setting this actionILcdprojectionto itsILcdGXYView.
-