y.view
Class NavigationComponent.ZoomAction
java.lang.Object
javax.swing.AbstractAction
y.view.NavigationComponent.ZoomAction
- All Implemented Interfaces:
- ActionListener, MouseListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- NavigationComponent
protected class NavigationComponent.ZoomAction
- extends AbstractAction
- implements MouseListener
This action is used for the zoom buttons of the zoom controls.
- See Also:
- Serialized Form
-
-
NavigationComponent.ZoomAction
public NavigationComponent.ZoomAction(double zoomFactor,
Icon icon)
- This action is used for the zoom buttons of the zoom controls.
- Parameters:
zoomFactor - the factor with which the current zoom level will be multiplied. Factors between 0 and 1 will
cause a zoom out, a factor greater than 1 will lead to a zoom in.icon - an icon for this action
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed in interface ActionListener
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered in interface MouseListener
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited in interface MouseListener
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed in interface MouseListener
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked in interface MouseListener
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased in interface MouseListener