|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteasik.sketch.vertex.SketchVertex
easik.sketch.constraint.Constraint
easik.sketch.constraint.CommutativeDiagram
public class CommutativeDiagram
The commutative diagram is a constraint made up of two lists (Arrays) of sketch edges. These two lists should share a domain and codomain.
| 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 | |
|---|---|
CommutativeDiagram(java.util.ArrayList<SketchPath> inPaths,
int x,
int y,
boolean isVisible)
Creates a commutative diagram from an ArrayList of paths. |
|
CommutativeDiagram(SketchPath pathA,
SketchPath pathB)
Creates a commutative diagram from two paths. |
|
CommutativeDiagram(SketchPath pathA,
SketchPath pathB,
int x,
int y,
boolean isVisible)
Creates a commutative diagram from two path. |
|
| Method Summary | |
|---|---|
SketchPath |
getPathA()
Return the first path |
SketchPath |
getPathB()
Return the second path |
static boolean |
isCommutativeDiagram(SketchPath pathA,
SketchPath pathB)
Checks whether the current selected paths form a commutative diagram. |
| 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 |
|---|
public CommutativeDiagram(java.util.ArrayList<SketchPath> inPaths,
int x,
int y,
boolean isVisible)
inPaths - ArrayList that should contain only the two paths used for the commutative diagramx - x coordinatey - y coordinateisVisible - If true the constraint will be shown in the graph, otherwise it will not be visible.
public CommutativeDiagram(SketchPath pathA,
SketchPath pathB)
pathA - The first path.pathB - The second path.
public CommutativeDiagram(SketchPath pathA,
SketchPath pathB,
int x,
int y,
boolean isVisible)
pathA - The first pathpathB - The second pathx - x coordinatey - y coordinateisVisible - If true the constraint will be shown in the graph, otherwise it will not be visible.| Method Detail |
|---|
public SketchPath getPathA()
public SketchPath getPathB()
public static boolean isCommutativeDiagram(SketchPath pathA,
SketchPath pathB)
pathA - The first path participating in the commutative diagrampathB - the second path participating in the commutative diagram
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||