org.simbrain.network
Class EditMode

java.lang.Object
  extended by org.simbrain.network.EditMode

public final class EditMode
extends Object

Typesafe enumeration of edit modes.


Field Summary
static EditMode PAN
          Pan edit mode.
static EditMode SELECTION
          Selection edit mode.
static Collection VALUES
          Collection of edit mode values.
static EditMode ZOOM_IN
          Zoom in edit mode.
static EditMode ZOOM_OUT
          Zoom out edit mode.
 
Method Summary
 Cursor getCursor()
          Return the cursor for this edit mode.
 boolean isPan()
          Return true if this edit mode is PAN.
 boolean isSelection()
          Return true if this edit mode is SELECTION.
 boolean isZoom()
          Return true if this edit mode is either ZOOM_IN or ZOOM_OUT.
 boolean isZoomIn()
          Return true if this edit mode is ZOOM_IN.
 boolean isZoomOut()
          Return true if this edit mode is ZOOM_OUT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTION

public static final EditMode SELECTION
Selection edit mode.


PAN

public static final EditMode PAN
Pan edit mode.


ZOOM_IN

public static final EditMode ZOOM_IN
Zoom in edit mode.


ZOOM_OUT

public static final EditMode ZOOM_OUT
Zoom out edit mode.


VALUES

public static final Collection VALUES
Collection of edit mode values.

Method Detail

getCursor

public Cursor getCursor()
Return the cursor for this edit mode.

Returns:
the cursor for this edit mode

isSelection

public boolean isSelection()
Return true if this edit mode is SELECTION.

Returns:
true if this edit mode is SELECTION

isPan

public boolean isPan()
Return true if this edit mode is PAN.

Returns:
true if this edit mode is PAN

isZoomIn

public boolean isZoomIn()
Return true if this edit mode is ZOOM_IN.

Returns:
true if this edit mode is ZOOM_IN

isZoomOut

public boolean isZoomOut()
Return true if this edit mode is ZOOM_OUT.

Returns:
true if this edit mode is ZOOM_OUT

isZoom

public boolean isZoom()
Return true if this edit mode is either ZOOM_IN or ZOOM_OUT.

Returns:
true if this edit mode is either ZOOM_IN or ZOOM_OUT