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
changeSupportFields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent aActionEvent) Calls doPan( getDeltaX(), getDeltaY(), getGXYView() );voidaddUndoableListener(ILcdUndoableListener aListener) Adds a listener to this source, so this listener is notified when something undoable has happened.voiddoPan(int aDeltaX, int aDeltaY, ILcdGXYView aGXYView) Performs a pan of [aDeltaX,aDeltaY] in screen coordinates in the givenILcdGXYView.`protected voidfireUndoableHappened(ILcdUndoable aUndoable) intintvoidremoveUndoableListener(ILcdUndoableListener aListener) Removes the specified listener so it is no longer notified.voidsetDeltaX(int aDeltaX) Sets the delta x in screen coordinates to by considered be the actionPerformed methodvoidsetDeltaY(int aDeltaY) Sets the delta y in screen coordinates to by considered be the actionPerformed methodvoidsetGXYView(ILcdGXYView aGXYView) Sets theILcdGXYViewto 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, setTraceOnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.gui.ILcdAction
getValue, isEnabled, putValue, setEnabledMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcdGXYViewPanAction
public TLcdGXYViewPanAction()
-
-
Method Details
-
actionPerformed
Calls doPan( getDeltaX(), getDeltaY(), getGXYView() );- Specified by:
actionPerformedin interfaceActionListener
-
doPan
Performs a pan of [aDeltaX,aDeltaY] in screen coordinates in the givenILcdGXYView.` -
addUndoableListener
Description copied from interface:ILcdUndoableSourceAdds a listener to this source, so this listener is notified when something undoable has happened.- Specified by:
addUndoableListenerin interfaceILcdUndoableSource- Parameters:
aListener- The listener to be notified when something undoable has happened.
-
removeUndoableListener
Description copied from interface:ILcdUndoableSourceRemoves the specified listener so it is no longer notified.- Specified by:
removeUndoableListenerin interfaceILcdUndoableSource- Parameters:
aListener- The listener to remove.
-
fireUndoableHappened
-
setGXYView
Sets theILcdGXYViewto 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:
-