|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.states.EasikState
easik.states.AddSumConstraintState
public class AddSumConstraintState
This state makes a sum constraint. When pushed, it will then push another state to get a path. Once the first path is received, it will push another request for a path. After adding the first path the options to either add another path or finish the constraint are available.
Field Summary | |
---|---|
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 | |
---|---|
AddSumConstraintState(Sketch inSketch)
Constructor for creating a new state to collect paths and make a diagram. |
Method Summary | |
---|---|
private boolean |
addDiagram()
Add the diagram to the sketch |
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 "New Sum Constraint". |
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 boolean _finished
Constructor Detail |
---|
public AddSumConstraintState(Sketch inSketch)
inSketch
- The sketch being worked with.Method Detail |
---|
public void passPath(SketchPath inPath)
passPath
in interface PathAcceptingState
inPath
- The last path in, null if it was a cancellationprivate boolean addDiagram()
public 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 |