edu.mines.jtk.mosaic
Class TileZoomMode

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by edu.mines.jtk.awt.Mode
          extended by edu.mines.jtk.mosaic.TileZoomMode
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class TileZoomMode
extends Mode

A mode for zooming tiles and tile axes.

Version:
2004.12.29
Author:
Dave Hale, Colorado School of Mines
See Also:
Serialized Form

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
TileZoomMode(ModeManager modeManager)
          Constructs a tile zoom mode with specified manager.
 
Method Summary
protected  void setActive(java.awt.Component component, boolean active)
          Activates or deactivates this mode for the specified component.
 
Methods inherited from class edu.mines.jtk.awt.Mode
actionPerformed, getCursor, isActive, isExclusive, loadCursor, loadIcon, setAcceleratorKey, setActive, setCursor, setEnabled, setIcon, setLongDescription, setMnemonicKey, setName, setShortDescription
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TileZoomMode

public TileZoomMode(ModeManager modeManager)
Constructs a tile zoom mode with specified manager.

Parameters:
modeManager - the mode manager for this mode.
Method Detail

setActive

protected void setActive(java.awt.Component component,
                         boolean active)
Description copied from class: Mode
Activates or deactivates this mode for the specified component. Typically, in their implementations of this method, modes add or remove input event listeners, when the mode is applicable to the specified component or type of component.

This method should not be called directly. The mode's manager calls this method for all of its components. Implementations of this method should do nothing for components for which the mode is inapplicable.

Specified by:
setActive in class Mode
Parameters:
component - the component for which to enable the mode.
active - true, to activate; false, to deactivate.