Package com.luciad.view.gxy
Class TLcdGXYViewPanAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.gxy.TLcdGXYViewPanAction
- All Implemented Interfaces:
ILcdAction
,ILcdUndoableSource
,ILcdPropertyChangeSource
,ActionListener
,Serializable
,EventListener
This is a
ILcdAction
(i.e. an ActionListener) for panning a
ILcdGXYView
of [deltaX,deltaY] in screen coordinates.- 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent aActionEvent) Calls doPan( getDeltaX(), getDeltaY(), getGXYView() );void
addUndoableListener
(ILcdUndoableListener aListener) Adds a listener to this source, so this listener is notified when something undoable has happened.void
doPan
(int aDeltaX, int aDeltaY, ILcdGXYView aGXYView) Performs a pan of [aDeltaX,aDeltaY] in screen coordinates in the givenILcdGXYView
.`protected void
fireUndoableHappened
(ILcdUndoable aUndoable) int
int
void
removeUndoableListener
(ILcdUndoableListener aListener) Removes the specified listener so it is no longer notified.void
setDeltaX
(int aDeltaX) Sets the delta x in screen coordinates to by considered be the actionPerformed methodvoid
setDeltaY
(int aDeltaY) Sets the delta y in screen coordinates to by considered be the actionPerformed methodvoid
setGXYView
(ILcdGXYView aGXYView) Sets theILcdGXYView
to by considered be the actionPerformed methodMethods 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.gui.ILcdAction
getValue, isEnabled, putValue, setEnabled
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcdGXYViewPanAction
public TLcdGXYViewPanAction()
-
-
Method Details
-
actionPerformed
Calls doPan( getDeltaX(), getDeltaY(), getGXYView() );- Specified by:
actionPerformed
in interfaceActionListener
-
doPan
Performs a pan of [aDeltaX,aDeltaY] in screen coordinates in the givenILcdGXYView
.` -
addUndoableListener
Description copied from interface:ILcdUndoableSource
Adds a listener to this source, so this listener is notified when something undoable has happened.- Specified by:
addUndoableListener
in interfaceILcdUndoableSource
- Parameters:
aListener
- The listener to be notified when something undoable has happened.
-
removeUndoableListener
Description copied from interface:ILcdUndoableSource
Removes the specified listener so it is no longer notified.- Specified by:
removeUndoableListener
in interfaceILcdUndoableSource
- Parameters:
aListener
- The listener to remove.
-
fireUndoableHappened
-
setGXYView
Sets theILcdGXYView
to by considered be the actionPerformed method -
getGXYView
- See Also:
-
setDeltaX
public void setDeltaX(int aDeltaX) Sets the delta x in screen coordinates to by considered be the actionPerformed method -
getDeltaX
public int getDeltaX()- See Also:
-
setDeltaY
public void setDeltaY(int aDeltaY) Sets the delta y in screen coordinates to by considered be the actionPerformed method -
getDeltaY
public int getDeltaY()- See Also:
-