eu.beesoft.gantt.action
Class ZoomOutAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by eu.beesoft.gantt.action.AbstractGanttAction
          extended by eu.beesoft.gantt.action.AbstractZoomAction
              extended by eu.beesoft.gantt.action.ZoomOutAction
All Implemented Interfaces:
LanguageListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ZoomOutAction
extends AbstractZoomAction

This action zooms out the content of ChartComponent.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
enabled, changeSupport
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ZoomOutAction(JGantt gantt)
          Creates a new instance of ZoomOutAction.
 
Method Summary
protected  int zoom(int currentStep, int stepCount)
          Returns the next step in the zoom action.
 
Methods inherited from class eu.beesoft.gantt.action.AbstractZoomAction
executeAction, getZoomPolicy, getZoomStep
 
Methods inherited from class eu.beesoft.gantt.action.AbstractGanttAction
actionPerformed, getGantt, getTextFromResourceBundle, languageChanged
 
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

ZoomOutAction

public ZoomOutAction(JGantt gantt)
Creates a new instance of ZoomOutAction.

Parameters:
gantt - JGantt instance to which this action belongs
Method Detail

zoom

protected int zoom(int currentStep,
                   int stepCount)
Returns the next step in the zoom action.

Specified by:
zoom in class AbstractZoomAction
Parameters:
currentStep - - current index of step in the ZoomPolicy instance
stepCount - - total number of steps in the ZoomPolicy instance
Returns:
next step index