public class ZoomInAction extends javax.swing.AbstractAction
ZoomOutAction,
Serialized Form| Constructor and Description |
|---|
ZoomInAction(Panel3D panel,
boolean fontAwesome)
Creates a new zoom-in action associated with the specified panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Performs the zoom in action.
|
double |
getZoomMultiplier()
Returns the zoom multiplier.
|
void |
setZoomMultiplier(double multiplier)
Sets the zoom multiplier (the current viewing distance is multiplied
by this factor to determine the new viewing distance).
|
public ZoomInAction(Panel3D panel, boolean fontAwesome)
panel - the panel (null not permitted).fontAwesome - if true an icon from Font Awesome is
used for the action label, otherwise a regular text label is used.public double getZoomMultiplier()
95 / 100
(the inverse of the multiplier in the ZoomOutAction).public void setZoomMultiplier(double multiplier)
multiplier - the new multiplier.public void actionPerformed(java.awt.event.ActionEvent e)
e - the action event.