public class TLcdGXYViewZoomAction extends ALcdAction implements ILcdAction, ILcdUndoableSource
ILcdAction
(i.e. an ActionListener) for zooming a
ILcdGXYView
of a given zoom factor.changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdGXYViewZoomAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent aActionEvent)
Calls doZoom( getZoomFactor(), getGXYView() );
|
void |
addUndoableListener(ILcdUndoableListener aUndoableListener)
Adds a listener to this source, so this listener is notified when something undoable has
happened.
|
void |
doZoom(double aZoomFactor,
ILcdGXYView aGXYView)
Performs a Zoom of aZoomFactor in the given
ILcdGXYView |
protected void |
fireUndoableHappened(ILcdUndoable aUndoable) |
ILcdGXYView |
getGXYView() |
double |
getZoomFactor() |
void |
removeUndoableListener(ILcdUndoableListener aUndoableListener)
Removes the specified listener so it is no longer notified.
|
void |
setGXYView(ILcdGXYView aGXYView)
Sets the
ILcdGXYView to by considered be the actionPerformed
method |
void |
setZoomFactor(double aZoomFactor)
Sets the zoom factor to be considered by 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 doZoom(double aZoomFactor, ILcdGXYView aGXYView)
ILcdGXYView
public void setGXYView(ILcdGXYView aGXYView)
ILcdGXYView
to by considered be the actionPerformed
methodpublic ILcdGXYView getGXYView()
public void setZoomFactor(double aZoomFactor)
public double getZoomFactor()
setZoomFactor(double)
public void addUndoableListener(ILcdUndoableListener aUndoableListener)
ILcdUndoableSource
addUndoableListener
in interface ILcdUndoableSource
aUndoableListener
- The listener to be notified when something undoable has happened.public void removeUndoableListener(ILcdUndoableListener aUndoableListener)
ILcdUndoableSource
removeUndoableListener
in interface ILcdUndoableSource
aUndoableListener
- The listener to remove.protected void fireUndoableHappened(ILcdUndoable aUndoable)