public class Path
extends java.lang.Object
| Constructor | Description |
|---|---|
Path() |
Constructor using a default path name "DefaultPath"
|
Path(java.lang.String pName) |
Constructor assigning a path name.
|
Path(org.w3c.dom.Node n) |
Constructor from an XML node.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addNode(org.w3c.dom.Document d,
org.w3c.dom.Node root) |
Write out the path as an XML node in a supplied document.
|
void |
addStep(java.lang.String dir) |
Add a step to the current path macro.
|
Path |
getCopy() |
Get a copy of this object
|
int |
getCount() |
Get the number of movement commands in the path
|
java.lang.String |
getName() |
get the name of the path
|
java.lang.String[] |
getSteps() |
Return the path steps as an array.
|
java.lang.String[] |
getStepsReverse() |
Return the paths reverse-direction steps.
|
int |
hashCode() |
|
void |
setName(java.lang.String newName) |
Set the "name" of the path.
|
java.lang.String |
toString() |
public Path()
public Path(java.lang.String pName)
throws InvalidPathException
InvalidPathExceptionpublic Path(org.w3c.dom.Node n)
public void addNode(org.w3c.dom.Document d,
org.w3c.dom.Node root)
public void setName(java.lang.String newName)
throws InvalidPathException
InvalidPathExceptionpublic java.lang.String getName()
public int getCount()
public void addStep(java.lang.String dir)
dir - : Directionpublic java.lang.String[] getSteps()
public java.lang.String[] getStepsReverse()
public java.lang.String toString()
toString in class java.lang.Objectpublic Path getCopy()
public int hashCode()
hashCode in class java.lang.Object