Java javax.swing.tree TreePath fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.tree TreePath fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.tree TreePath.

The text is from its open source code.

Constructor

TreePath(Object[] path)
Creates a TreePath from an array.
TreePath(Object lastPathComponent)
Creates a TreePath containing a single element.

Method

booleanequals(Object o)
Compares this TreePath to the specified object.
ObjectgetLastPathComponent()
Returns the last element of this path.
TreePathgetParentPath()
Returns the TreePath of the parent.
Object[]getPath()
Returns an ordered array of the elements of this TreePath .
ObjectgetPathComponent(int index)
Returns the path element at the specified index.
intgetPathCount()
Returns the number of elements in the path.
booleanisDescendant(TreePath aTreePath)
Returns true if aTreePath is a descendant of this TreePath .
TreePathpathByAddingChild(Object child)
Returns a new path containing all the elements of this path plus child.
StringtoString()
Returns a string that displays and identifies this object's properties.