Interface INodeCoordinates
- All Known Implementing Classes:
NodeCoordinates
public interface INodeCoordinates
A coordinates system for nodes inside an
ITreeDocument
.
The address is a path from the root to the node. Each element in a path is a zero-indexed value that indicates the current parent position in the tree branch.
Example tree:
a b>-+ c e d f g
Coordinates of:
- a : (0)
- b : (1)
- e : (1,0)
- f : (1,1)
-
Method Summary
-
Method Details
-
getPath
Return the path of the node being addressed. A path is a tuple of positions in each of the branch leading from the root to the node.- Returns:
- the path or null, see description above
-