public class NodePath
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
entry
The path entry of the root node (stored as index to distinguish between paths added twice).
|
protected java.lang.String[] |
path
The path items to navigate to the node.
|
| Constructor and Description |
|---|
NodePath()
Create a node path.
|
NodePath(int entry,
java.lang.String[] path)
Create a node path.
|
| Modifier and Type | Method and Description |
|---|---|
static NodePath |
createNodePath(ISwingTreeNode node)
Create a node path for a given node.
|
boolean |
equals(java.lang.Object obj)
Test for equality.
|
int |
getEntry()
Get the entry index.
|
java.lang.String[] |
getPath()
Get the path.
|
int |
hashCode()
Get the hash code.
|
void |
setEntry(int entry)
Set the entry index.
|
void |
setPath(java.lang.String[] path)
Set the path.
|
java.lang.String |
toString()
Get a string representation.
|
protected int entry
protected java.lang.String[] path
public NodePath()
public NodePath(int entry,
java.lang.String[] path)
public int getEntry()
public void setEntry(int entry)
public java.lang.String[] getPath()
public void setPath(java.lang.String[] path)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static NodePath createNodePath(ISwingTreeNode node)