easik.sketch.constraint
Class PullbackConstraint

java.lang.Object
  extended by easik.sketch.vertex.SketchVertex
      extended by easik.sketch.constraint.Constraint
          extended by 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

Field Summary
 
Fields inherited from class easik.sketch.constraint.Constraint
_constraintLabel, _constraintNode, _edges, _isVisible, _paths, _visuals
 
Fields inherited from class easik.sketch.vertex.SketchVertex
_marked, _name, _posX, _posY
 
Constructor Summary
PullbackConstraint(java.util.ArrayList<SketchPath> inPaths)
          Takes an ArrayList of paths, makes them a pullback.
PullbackConstraint(java.util.ArrayList<SketchPath> paths, int x, int y, boolean isVisible)
          Takes an ArrayList of paths, makes them a pullback.
 
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 easik.sketch.vertex.SketchVertex
getMarked, getName, getX, getY, setMarked, setName, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 SketchPaths
x - X coordinate of visual aid
y - Y coordinate of visual aid
isVisible - If the constraint is visible in the graph or not
Method Detail

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