yu.ac.bg.etf.javaqx.qswing.tree
Class TreePath

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.tree.TreePath

public class TreePath
extends java.lang.Object

Tree Path.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Constructor Summary
protected TreePath()
          Constructs new TreePath object.
  TreePath(java.lang.Object singlePath)
          Constructs new TreePath object.
  TreePath(java.lang.Object[] path)
          Constructs new TreePath object.
protected TreePath(java.lang.Object[] path, int length)
          Constructs new TreePath object.
protected TreePath(TreePath parent, java.lang.Object lastElement)
          Constructs new TreePath object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.lang.Object getLastPathComponent()
          Returns last path component.
 TreePath getParentPath()
          Returns parent path.
 java.lang.Object[] getPath()
          Returns array of path components.
 int getPathCount()
          Returns the number of nodes in the path.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreePath

public TreePath(java.lang.Object singlePath)
Constructs new TreePath object.

Parameters:
singlePath - the single path

TreePath

public TreePath(java.lang.Object[] path)
Constructs new TreePath object.

Parameters:
path - the path

TreePath

protected TreePath()
Constructs new TreePath object.


TreePath

protected TreePath(java.lang.Object[] path,
                   int length)
Constructs new TreePath object.

Parameters:
path - the path
length - the length of the path

TreePath

protected TreePath(TreePath parent,
                   java.lang.Object lastElement)
Constructs new TreePath object.

Parameters:
parent - the parent path
lastElement - the last element
Method Detail

getParentPath

public TreePath getParentPath()
Returns parent path.

Returns:
parent path

getPathCount

public int getPathCount()
Returns the number of nodes in the path.

Returns:
the number of nodes in the path

getPath

public java.lang.Object[] getPath()
Returns array of path components.

Returns:
array of path component

getLastPathComponent

public java.lang.Object getLastPathComponent()
Returns last path component.

Returns:
last path component

hashCode

public int hashCode()


equals

public boolean equals(java.lang.Object obj)



Copyright © 2007 ETF and contributors. All Rights Reserved.