Class CurrentState

java.lang.Object
  extended byCurrentState

public class CurrentState
extends java.lang.Object

This class represents the current state of a class and defines different states.

Author:
Matilda Östling

Field Summary
static int CHANGE
           
static int CREATION_MESSAGE
           
private  int currentState
           
static int DRAGGING_END
           
static int DRAGGING_START
           
static int FIND_END_POINT
           
static int INSERT
           
static int MOVE_OBJECT
           
static int NORMAL
           
static int RUBBERBAND
           
 
Constructor Summary
CurrentState()
          The constructor of the class.
 
Method Summary
 int getCurrentState()
          This method returns the current state of the class.
 void setCurrentState(int s)
          This method sets the current state of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

INSERT

public static final int INSERT
See Also:
Constant Field Values

FIND_END_POINT

public static final int FIND_END_POINT
See Also:
Constant Field Values

RUBBERBAND

public static final int RUBBERBAND
See Also:
Constant Field Values

CHANGE

public static final int CHANGE
See Also:
Constant Field Values

DRAGGING_END

public static final int DRAGGING_END
See Also:
Constant Field Values

DRAGGING_START

public static final int DRAGGING_START
See Also:
Constant Field Values

MOVE_OBJECT

public static final int MOVE_OBJECT
See Also:
Constant Field Values

CREATION_MESSAGE

public static final int CREATION_MESSAGE
See Also:
Constant Field Values

currentState

private int currentState
Constructor Detail

CurrentState

public CurrentState()
The constructor of the class. Sets the current state to NORMAL.

Method Detail

setCurrentState

public void setCurrentState(int s)
This method sets the current state of this class.

Parameters:
s - The current state.

getCurrentState

public int getCurrentState()
This method returns the current state of the class.

Returns:
The current state.