Class CurrentState
java.lang.Object
CurrentState
- public class CurrentState
- extends java.lang.Object
This class represents the current state of a class and
defines different states.
- Author:
- Matilda Östling
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 |
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
CurrentState
public CurrentState()
- The constructor of the class.
Sets the current state to NORMAL.
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.