eu.beesoft.gantt.action
Class ZoomInAction

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.ZoomInAction
All Implemented Interfaces:
LanguageListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ZoomInAction
extends AbstractZoomAction

This action zooms in 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
ZoomInAction(JGantt gantt)
          Creates a new instance of ZoomInAction.
 
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

ZoomInAction

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

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