us.nj.nwk.overlapping_analysis
Class Model.Mode

java.lang.Object
  extended by us.nj.nwk.overlapping_analysis.Model.Mode
Enclosing class:
Model

public class Model.Mode
extends Object


Field Summary
static int MOVE_VIEW
          The MOVE mode allows the cameras to be moved in a view.
static int NONE
          No Mode
static int ROTATE_VIEW
          The ZOOM mode allows the cameras to be zoomed in a view.
static int ZOOM_VIEW
          The ZOOM mode allows the cameras to be zoomed in a view.
 
Constructor Summary
Model.Mode()
          Constructs a new Mode
 
Method Summary
 void addModeListener(Model.ModeListener listener)
          Adds a mode listener
protected  void fireModeChangedEvent(int mode, int old_mode)
           
 int getMode()
          return the current mode.
 void removeModeListener(Model.ModeListener listener)
          Removes a mode listener
 void setMode(int mode)
          Sets the Mode to mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
No Mode

See Also:
Constant Field Values

MOVE_VIEW

public static final int MOVE_VIEW
The MOVE mode allows the cameras to be moved in a view.

See Also:
Constant Field Values

ZOOM_VIEW

public static final int ZOOM_VIEW
The ZOOM mode allows the cameras to be zoomed in a view.

See Also:
Constant Field Values

ROTATE_VIEW

public static final int ROTATE_VIEW
The ZOOM mode allows the cameras to be zoomed in a view.

See Also:
Constant Field Values
Constructor Detail

Model.Mode

public Model.Mode()
Constructs a new Mode

Method Detail

setMode

public void setMode(int mode)
Sets the Mode to mode

Parameters:
mode - mode to set to.

getMode

public int getMode()
return the current mode.

Returns:
the current mode

addModeListener

public void addModeListener(Model.ModeListener listener)
Adds a mode listener

Parameters:
listener - listener to add

removeModeListener

public void removeModeListener(Model.ModeListener listener)
Removes a mode listener

Parameters:
listener - listener to remove

fireModeChangedEvent

protected void fireModeChangedEvent(int mode,
                                    int old_mode)