edu.mines.jtk.awt
Class ModeManager

java.lang.Object
  extended by edu.mines.jtk.awt.ModeManager

public class ModeManager
extends java.lang.Object

A manager for a set of modes and components. A mode manager handles activation and deactivation for all modes in its set of modes. It does this by passing the active state (true or false) to its modes, for each of the components in its set of components. Typically, when activated, a mode adds input event listeners to the specified components. Then, when deactivated, such a mode removes those event listeners.

Version:
2004.12.29
Author:
Dave Hale, Colorado School of Mines

Constructor Summary
ModeManager()
          Constructs a mode manager with an empty set of modes.
 
Method Summary
 void add(java.awt.Component c)
          Adds the specified component.
 void remove(java.awt.Component c)
          Removes the specified component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeManager

public ModeManager()
Constructs a mode manager with an empty set of modes.

Method Detail

add

public void add(java.awt.Component c)
Adds the specified component.

Parameters:
c - the component.

remove

public void remove(java.awt.Component c)
Removes the specified component.

Parameters:
c - the component.