|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.gvt.GVTTreeWalker
GVTTreeWalker objects are used to navigate a GVT tree or subtree.
Field Summary | |
protected GraphicsNode |
currentNode
The current GraphicsNode. |
protected GraphicsNode |
gvtRoot
The GVT root into which text is searched. |
Constructor Summary | |
GVTTreeWalker(GraphicsNode gvtRoot)
Constructs a new GVTTreeWalker. |
Method Summary | |
GraphicsNode |
firstChild()
Returns the first child of the current GraphicsNode. |
GraphicsNode |
getCurrentGraphicsNode()
Returns the current GraphicsNode. |
GraphicsNode |
getNextSibling()
Returns the next sibling of the current GraphicsNode. |
GraphicsNode |
getPreviousSibling()
Returns the next previous of the current GraphicsNode. |
GraphicsNode |
getRoot()
Returns the root graphics node. |
GraphicsNode |
lastChild()
Returns the last child of the current GraphicsNode. |
GraphicsNode |
nextGraphicsNode()
Returns the next GraphicsNode. |
GraphicsNode |
parentGraphicsNode()
Returns the parent of the current GraphicsNode. |
GraphicsNode |
previousGraphicsNode()
Returns the previous GraphicsNode. |
void |
setCurrentGraphicsNode(GraphicsNode node)
Sets the current GraphicsNode to the specified node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected GraphicsNode gvtRoot
protected GraphicsNode currentNode
Constructor Detail |
public GVTTreeWalker(GraphicsNode gvtRoot)
gvtRoot
- the graphics node rootMethod Detail |
public GraphicsNode getRoot()
public void setCurrentGraphicsNode(GraphicsNode node)
node
- the new current graphics nodejava.lang.IllegalArgumentException
- if the node is not part of the GVT Tree
this walker is dedicated topublic GraphicsNode getCurrentGraphicsNode()
public GraphicsNode previousGraphicsNode()
public GraphicsNode nextGraphicsNode()
public GraphicsNode parentGraphicsNode()
public GraphicsNode getNextSibling()
public GraphicsNode getPreviousSibling()
public GraphicsNode firstChild()
public GraphicsNode lastChild()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |