|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.states.EasikState
easik.states.AddPathToConstraintState
public class AddPathToConstraintState
This state is used to add a new path to a current constraint
Field Summary | |
---|---|
private Constraint |
_constraint
The constraint being edited |
private boolean |
_finished
Stores whether the user has finished adding paths to this constraint |
private java.util.ArrayList<SketchPath> |
_paths
The paths involved in this constraint |
Fields inherited from class easik.states.EasikState |
---|
_ourSketch |
Constructor Summary | |
---|---|
AddPathToConstraintState(Sketch inSketch,
java.util.ArrayList<SketchPath> curPaths,
Constraint curConstraint)
Constructor for creating a new state to collect paths and make a diagram. |
Method Summary | |
---|---|
void |
passPath(SketchPath inPath)
Called when a new path has been completed by a state above this on the stack. |
void |
poppedOff()
Nothing to do when it gets popped off, as it always pops itself off when completed. |
void |
pushedOn()
When this state is pushed on, it sends a message in a popup and then pushes a path collection state. |
java.lang.String |
toString()
This state is called "Adding Path(s)". |
Methods inherited from class easik.states.EasikState |
---|
cancelClicked, finishClicked, gotFocus, nextClicked, resetColors, selectionUpdated, setCancelButton, setFinishButton, setNextButton |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<SketchPath> _paths
private Constraint _constraint
private boolean _finished
Constructor Detail |
---|
public AddPathToConstraintState(Sketch inSketch, java.util.ArrayList<SketchPath> curPaths, Constraint curConstraint)
inSketch
- The sketch being worked with.curPaths
- The current paths of the constraintcurConstraint
- The current constraintMethod Detail |
---|
public void passPath(SketchPath inPath)
passPath
in interface PathAcceptingState
inPath
- The last path in, null if it was a cancellationpublic void pushedOn()
pushedOn
in class EasikState
public void poppedOff()
poppedOff
in class EasikState
public java.lang.String toString()
toString
in class EasikState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |