easik.sketch.constraint
Class PullbackConstraint
java.lang.Object
easik.sketch.vertex.SketchVertex
easik.sketch.constraint.Constraint
easik.sketch.constraint.PullbackConstraint
public class PullbackConstraint
- extends Constraint
Class representing a pullback constraint.
- Version:
- 2006-08-02 Kevin Green
- Author:
- Kevin Green 2006, Vera Ranieri 2006
Method Summary |
static boolean |
isPullbackConstraint(java.util.ArrayList<SketchPath> paths)
Method to determine whether a set of paths potentially forming a pullback constraint could legally
form a pullback constraint. |
Methods inherited from class easik.sketch.constraint.Constraint |
addEdges, addVisualsToSketch, getEdges, getNode, getPaths, getTablesInvolvedForError, getType, hasEdge, isDomainOrCoDomain, isVisible, setAllConstraintsVisible, setNode, setVisible, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PullbackConstraint
public PullbackConstraint(java.util.ArrayList<SketchPath> inPaths)
- Takes an ArrayList of paths, makes them a pullback.
- Parameters:
inPaths
- An ArrayList of SketchPaths
PullbackConstraint
public PullbackConstraint(java.util.ArrayList<SketchPath> paths,
int x,
int y,
boolean isVisible)
- Takes an ArrayList of paths, makes them a pullback.
- Parameters:
paths
- An ArrayList of SketchPathsx
- X coordinate of visual aidy
- Y coordinate of visual aidisVisible
- If the constraint is visible in the graph or not
isPullbackConstraint
public static boolean isPullbackConstraint(java.util.ArrayList<SketchPath> paths)
- Method to determine whether a set of paths potentially forming a pullback constraint could legally
form a pullback constraint.
Note: This method does not currently care about the order that the paths are selected.
- Parameters:
paths
- The set of potential paths
- Returns:
- True if a legal pullback configuration, false otherwise.
- Since:
- 2006-05-25 Vera Ranieri