public class TLcdSetProjectionAction extends ALcdAction
ILcdAction
will set
a given ILcdProjection
to a given ILcdGXYView
(both are given in the constructor).changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdSetProjectionAction(ILcdProjection aProjection,
String aActionName,
ILcdGXYView aGXYView)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent aActionEvent)
Deprecated.
This method will, given an
ActionEvent aActionEvent, set the property
of XYWorldReference of the ILcdGXYView of this TLcdSetProjectionAction to
to the ILcdProjection of this TLcdSetProjectionAction . |
protected void |
adjustMyProjection()
Deprecated.
This method gets the
ILcdProjection of the ILcdGXYView passed in the
constructor method, and tries to adjust the ILcdProjection of this
action to fit as much as possible to the ILcdProjection currently
active in the ILcdGXYView . |
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
public TLcdSetProjectionAction(ILcdProjection aProjection, String aActionName, ILcdGXYView aGXYView)
public void actionPerformed(ActionEvent aActionEvent)
ActionEvent
aActionEvent, set the property
of XYWorldReference of the ILcdGXYView
of this TLcdSetProjectionAction
to
to the ILcdProjection
of this TLcdSetProjectionAction
.
It tries to adjust the ILcdProjection
of this
action to fit as much as possible to the ILcdProjection
currently
active in the ILcdGXYView
.
For example, consider that the ILcdprojection
of the ILcdGXYView
is
currently a ILcdCylindrical
which central meridian is lon = 50degrees,
and consider the ILcdProjection
of this action is a ILcdAzimuthal
.
It means that this action will replace the current ILcdCylindrical
projection of the ILcdGXYView
by a ILcdAzimuthal
projection. We would like
that the lon attribute of the ILcdCylindrical
projection to be 50degrees
also.
protected void adjustMyProjection()
ILcdProjection
of the ILcdGXYView
passed in the
constructor method, and tries to adjust the ILcdProjection
of this
action to fit as much as possible to the ILcdProjection
currently
active in the ILcdGXYView
.
For example, consider that the ILcdprojection
of the ILcdGXYView
is
currently a ILcdCylindrical
which central meridian is lon = 50degrees,
and consider the ILcdProjection
of this action is a ILcdAzimuthal
.
It means that this action will replace the current ILcdCylindrical
projection of the ILcdGXYView
by a ILcdAzimuthal
projection. We would like
that the lon attribute of the ILcdCylindrical
projection to be 50degrees
also.
This method will be called in the actionPerformed method just before
setting this action ILcdprojection
to its ILcdGXYView
.