java.lang.Object
javax.swing.AbstractAction
org.jfree.chart3d.graphics3d.swing.ZoomOutAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
An action that performs a zoom out operation on the content in a
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
Panel3D.
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
ConstructorsConstructorDescriptionZoomOutAction(Panel3D panel, boolean fontAwesome) Creates a new zoom-out action associated with the specified panel. -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms the zoom out action.doubleReturns the zoom multiplier.voidsetZoomMultiplier(double multiplier) Sets the zoom multiplier (the current viewing distance is multiplied by this factor to determine the new viewing distance).Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
ZoomOutAction
Creates a new zoom-out action associated with the specified panel.- Parameters:
panel- the panel (nullnot permitted).fontAwesome- use the FontAwesome icon text?
-
-
Method Details
-
getZoomMultiplier
Returns the zoom multiplier. The default value is100 / 95(the inverse of the multiplier in theZoomInAction).- Returns:
- The zoom multiplier.
- Since:
- 1.3
-
setZoomMultiplier
Sets the zoom multiplier (the current viewing distance is multiplied by this factor to determine the new viewing distance).- Parameters:
multiplier- the new multiplier.- Since:
- 1.3
-
actionPerformed
Performs the zoom out action.- Parameters:
e- the action event.
-