|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.batik.gvt.GVTTreeWalker
public class 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. |
protected GraphicsNode |
treeRoot
The root of the subtree of the GVT which is traversed. |
Constructor Summary | |
---|---|
GVTTreeWalker(GraphicsNode treeRoot)
Constructs a new GVTTreeWalker . |
Method Summary | |
---|---|
GraphicsNode |
firstChild()
Returns the first child of the current GraphicsNode . |
GraphicsNode |
getCurrentGraphicsNode()
Returns the current GraphicsNode . |
protected static GraphicsNode |
getFirstChild(GraphicsNode node)
|
GraphicsNode |
getGVTRoot()
Returns the GVT root graphics node. |
protected static GraphicsNode |
getLastChild(GraphicsNode node)
|
protected GraphicsNode |
getNextGraphicsNode(GraphicsNode node)
|
GraphicsNode |
getNextSibling()
Returns the next sibling of the current GraphicsNode . |
protected static GraphicsNode |
getNextSibling(GraphicsNode node)
|
protected GraphicsNode |
getPreviousGraphicsNode(GraphicsNode node)
|
GraphicsNode |
getPreviousSibling()
Returns the next previous of the current GraphicsNode . |
protected static GraphicsNode |
getPreviousSibling(GraphicsNode node)
|
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 treeRoot
protected GraphicsNode currentNode
Constructor Detail |
---|
public GVTTreeWalker(GraphicsNode treeRoot)
GVTTreeWalker
.
treeRoot
- the top of the graphics node tree to searchMethod Detail |
---|
public GraphicsNode getRoot()
public GraphicsNode getGVTRoot()
public void setCurrentGraphicsNode(GraphicsNode node)
node
- the new current graphics node
IllegalArgumentException
- if the node is not part of
the GVT Tree this walker is dedicated topublic GraphicsNode getCurrentGraphicsNode()
GraphicsNode
.
public GraphicsNode previousGraphicsNode()
GraphicsNode
. If the current
graphics node does not have a previous node, returns null and
retains the current node.
public GraphicsNode nextGraphicsNode()
GraphicsNode
. If the current graphics
node does not have a next node, returns null and retains the
current node.
public GraphicsNode parentGraphicsNode()
GraphicsNode
. If the
current graphics node has no parent, returns null and retains
the current node.
public GraphicsNode getNextSibling()
GraphicsNode
. If the current graphics node does not
have a next sibling, returns null and retains the current node.
public GraphicsNode getPreviousSibling()
GraphicsNode
. If the current graphics node does not
have a previous sibling, returns null and retains the current
node.
public GraphicsNode firstChild()
GraphicsNode
. If the current graphics node does not
have a first child, returns null and retains the current node.
public GraphicsNode lastChild()
GraphicsNode
. If
the current graphics node does not have a last child, returns
null and retains the current node.
protected GraphicsNode getNextGraphicsNode(GraphicsNode node)
protected GraphicsNode getPreviousGraphicsNode(GraphicsNode node)
protected static GraphicsNode getLastChild(GraphicsNode node)
protected static GraphicsNode getPreviousSibling(GraphicsNode node)
protected static GraphicsNode getFirstChild(GraphicsNode node)
protected static GraphicsNode getNextSibling(GraphicsNode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |