Package com.luciad.view.gxy
Class TLcdGXYViewZoomAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.gxy.TLcdGXYViewZoomAction
- All Implemented Interfaces:
ILcdAction
,ILcdUndoableSource
,ILcdPropertyChangeSource
,ActionListener
,Serializable
,EventListener
This is a
ILcdAction
(i.e. an ActionListener) for zooming a
ILcdGXYView
of a given zoom factor.- 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 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 givenILcdGXYView
protected void
fireUndoableHappened
(ILcdUndoable aUndoable) double
void
removeUndoableListener
(ILcdUndoableListener aUndoableListener) Removes the specified listener so it is no longer notified.void
setGXYView
(ILcdGXYView aGXYView) Sets theILcdGXYView
to by considered be the actionPerformed methodvoid
setZoomFactor
(double aZoomFactor) Sets the zoom factor to be considered by 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
-
TLcdGXYViewZoomAction
public TLcdGXYViewZoomAction()
-
-
Method Details
-
actionPerformed
Calls doZoom( getZoomFactor(), getGXYView() );- Specified by:
actionPerformed
in interfaceActionListener
-
doZoom
Performs a Zoom of aZoomFactor in the givenILcdGXYView
-
setGXYView
Sets theILcdGXYView
to by considered be the actionPerformed method -
getGXYView
- See Also:
-
setZoomFactor
public void setZoomFactor(double aZoomFactor) Sets the zoom factor to be considered by the actionPerformed method -
getZoomFactor
public double getZoomFactor()- See Also:
-
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:
aUndoableListener
- 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:
aUndoableListener
- The listener to remove.
-
fireUndoableHappened
-