|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteasik.states.EasikState
easik.states.AddPullbackConstraintState
public class AddPullbackConstraintState
This state makes a pullback 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. This repeated until four paths have been collected and then the constraint is created (as long as the paths are valid).
| 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 |
private int |
_round
The current path number being selected |
| Fields inherited from class easik.states.EasikState |
|---|
_ourSketch |
| Constructor Summary | |
|---|---|
AddPullbackConstraintState(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 Pullback 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
private int _round
| Constructor Detail |
|---|
public AddPullbackConstraintState(Sketch inSketch)
inSketch - The sketch being worked with.| Method Detail |
|---|
public void passPath(SketchPath inPath)
passPath in interface PathAcceptingStateinPath - The last path in, null if it was a cancellationprivate boolean addDiagram()
public void pushedOn()
pushedOn in class EasikStatepublic void poppedOff()
poppedOff in class EasikStatepublic java.lang.String toString()
toString in class EasikState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||