|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.sketch.path.SketchPath
public class SketchPath
This class is used to track path data used for constraints
Field Summary | |
---|---|
private EntityNode |
_coDomain
The codomain of this path |
private EntityNode |
_domain
The domain of this path |
private java.util.LinkedList<SketchEdge> |
_edges
The list of edges comprising this path |
private java.lang.String |
_id
The unique id of this path |
Constructor Summary | |
---|---|
SketchPath(EntityNode inEntity)
Default constructor takes one entity |
|
SketchPath(java.util.LinkedList<SketchEdge> inPath)
Default constructor takes a LinkedList of edges |
Method Summary | |
---|---|
void |
generateID()
Generates a new ID based on the edges in the path |
EntityNode |
getCoDomain()
Returns the codomain of the path |
EntityNode |
getDomain()
Returns the domain of the path |
java.util.LinkedList<SketchEdge> |
getEdges()
Returns the list of edges |
java.lang.String |
getId()
Returns the ID of the path |
static boolean |
pathsAreEqual(SketchPath a,
SketchPath b)
Method to determine whether two paths are equal, based on the edges that comprise the path. |
static void |
renamePaths(java.util.HashMap<java.lang.String,SketchPath> paths,
SketchEdge newEdge)
Static method to rename a path in instances where an edge contained within the path has been renamed. |
java.lang.String |
toString()
Overloaded method returns the _id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String _id
private java.util.LinkedList<SketchEdge> _edges
private EntityNode _domain
private EntityNode _coDomain
Constructor Detail |
---|
public SketchPath(EntityNode inEntity)
inEntity
- An entitypublic SketchPath(java.util.LinkedList<SketchEdge> inPath)
inPath
- A LinkedList of edgesMethod Detail |
---|
public void generateID()
public java.lang.String toString()
toString
in class java.lang.Object
public EntityNode getDomain()
public java.lang.String getId()
public java.util.LinkedList<SketchEdge> getEdges()
public EntityNode getCoDomain()
public static void renamePaths(java.util.HashMap<java.lang.String,SketchPath> paths, SketchEdge newEdge)
paths
- hashMap of all paths to be searched for edge.newEdge
- The new name of the pathpublic static boolean pathsAreEqual(SketchPath a, SketchPath b)
a
- The first pathb
- The second path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |