public class TLcdGXYViewPanAction extends ALcdAction implements ILcdAction, ILcdUndoableSource
ILcdAction
(i.e. an ActionListener) for panning a
ILcdGXYView
of [deltaX,deltaY] in screen coordinates.changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdGXYViewPanAction() |
Modifier and Type | Method and Description |
---|---|
void |
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 given
ILcdGXYView .` |
protected void |
fireUndoableHappened(ILcdUndoable aUndoable) |
int |
getDeltaX() |
int |
getDeltaY() |
ILcdGXYView |
getGXYView() |
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 method
|
void |
setDeltaY(int aDeltaY)
Sets the delta y in screen coordinates to by considered be the
actionPerformed method
|
void |
setGXYView(ILcdGXYView aGXYView)
Sets the
ILcdGXYView to by considered be the actionPerformed
method |
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValue, isEnabled, putValue, setEnabled
addPropertyChangeListener, removePropertyChangeListener
public void actionPerformed(ActionEvent aActionEvent)
actionPerformed
in interface ActionListener
public void doPan(int aDeltaX, int aDeltaY, ILcdGXYView aGXYView)
ILcdGXYView
.`public void addUndoableListener(ILcdUndoableListener aListener)
ILcdUndoableSource
addUndoableListener
in interface ILcdUndoableSource
aListener
- The listener to be notified when something undoable has happened.public void removeUndoableListener(ILcdUndoableListener aListener)
ILcdUndoableSource
removeUndoableListener
in interface ILcdUndoableSource
aListener
- The listener to remove.protected void fireUndoableHappened(ILcdUndoable aUndoable)
public void setGXYView(ILcdGXYView aGXYView)
ILcdGXYView
to by considered be the actionPerformed
methodpublic ILcdGXYView getGXYView()
public void setDeltaX(int aDeltaX)
public int getDeltaX()
setDeltaX(int)
public void setDeltaY(int aDeltaY)
public int getDeltaY()
setDeltaY(int)