|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgramschmidt.GSStateModel
public class GSStateModel
State of the application (determines what is drawn). Note that this class is not implemented as a state-machine since the states are simply sequential.
Field Summary | |
---|---|
static int |
STATE_EMPTY
|
static int |
STATE_INITIALIZED
|
static int |
STATE_NORMALIZED
|
static int |
STATE_ORTHOGONAL_1
|
static int |
STATE_ORTHOGONAL_2
|
static int |
STATE_ORTHOGONAL_3
|
static int |
STATE_PROJECTION_1
|
static int |
STATE_PROJECTION_2
|
static int |
STATE_SUBTRACTION_1
|
static int |
STATE_SUBTRACTION_2
|
Constructor Summary | |
---|---|
GSStateModel()
Create a new state model. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Add a ChangeListener. |
void |
fireStateChanged(javax.swing.event.ChangeEvent e)
Notify all ChangeListeners. |
int |
getState()
|
void |
nextState()
Move to the next state. |
void |
previousState()
Move to the previous state. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Remove a ChangeListener. |
void |
setState(int state)
Set the current state. |
int |
statesDone()
|
int |
statesRemaining()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATE_EMPTY
public static final int STATE_INITIALIZED
public static final int STATE_ORTHOGONAL_1
public static final int STATE_PROJECTION_1
public static final int STATE_SUBTRACTION_1
public static final int STATE_ORTHOGONAL_2
public static final int STATE_PROJECTION_2
public static final int STATE_SUBTRACTION_2
public static final int STATE_ORTHOGONAL_3
public static final int STATE_NORMALIZED
Constructor Detail |
---|
public GSStateModel()
Method Detail |
---|
public int getState()
public void setState(int state)
public int statesRemaining()
public int statesDone()
public void nextState()
public void previousState()
public void addChangeListener(javax.swing.event.ChangeListener l)
public void removeChangeListener(javax.swing.event.ChangeListener l)
public void fireStateChanged(javax.swing.event.ChangeEvent e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |