org.apache.batik.gvt
public class GVTTreeWalker extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
GVTTreeWalker(GraphicsNode treeRoot)
Constructs a new GVTTreeWalker.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected GraphicsNode gvtRoot
protected GraphicsNode treeRoot
protected GraphicsNode currentNode
public GVTTreeWalker(GraphicsNode treeRoot)
treeRoot
- the top of the graphics node tree to searchpublic GraphicsNode getRoot()
public GraphicsNode getGVTRoot()
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()
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)
Copyright ? 2008 Apache Software Foundation. All Rights Reserved.