y.view
Class NavigationComponent.ZoomAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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
 
Your browser does not support SVG content.

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
NavigationComponent.ZoomAction(double zoomFactor, Icon icon)
          This action is used for the zoom buttons of the zoom controls.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void mouseClicked(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

© Copyright 2000-2008,
yWorks GmbH.
All rights reserved.