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
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 doZoom( getZoomFactor(), getGXYView() );voidaddUndoableListener(ILcdUndoableListener aUndoableListener) Adds a listener to this source, so this listener is notified when something undoable has happened.voiddoZoom(double aZoomFactor, ILcdGXYView aGXYView) Performs a Zoom of aZoomFactor in the givenILcdGXYViewprotected voidfireUndoableHappened(ILcdUndoable aUndoable) doublevoidremoveUndoableListener(ILcdUndoableListener aUndoableListener) Removes the specified listener so it is no longer notified.voidsetGXYView(ILcdGXYView aGXYView) Sets theILcdGXYViewto by considered be the actionPerformed methodvoidsetZoomFactor(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, 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
-
TLcdGXYViewZoomAction
public TLcdGXYViewZoomAction()
-
-
Method Details
-
actionPerformed
Calls doZoom( getZoomFactor(), getGXYView() );- Specified by:
actionPerformedin interfaceActionListener
-
doZoom
Performs a Zoom of aZoomFactor in the givenILcdGXYView -
setGXYView
Sets theILcdGXYViewto 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:ILcdUndoableSourceAdds a listener to this source, so this listener is notified when something undoable has happened.- Specified by:
addUndoableListenerin interfaceILcdUndoableSource- Parameters:
aUndoableListener- 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:
aUndoableListener- The listener to remove.
-
fireUndoableHappened
-