cz.cuni.mff.ksi.jinfer.basicruledisplayer.logic
Class NodePainter
java.lang.Object
cz.cuni.mff.ksi.jinfer.basicruledisplayer.logic.NodePainter
public class NodePainter
- extends Object
Class for painting XML nodes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodePainter
public NodePainter(Graphics2D graphics)
- Full constructor.
- Parameters:
graphics
- Graphics object used to get font metrics.
drawNode
public Image drawNode(Regexp<AbstractStructuralNode> r,
int level)
- Renders an abstract node and returns its image representation.
- Parameters:
r
- Node to be rendered. Must not be null.level
- Level of recursion - how deep in the tree are we.
- Returns:
- Image representation of this node. If the level is higher that the
threshold from configuration, an image of three dots is returned.
Generated on Fri Dec 9 00:01:25 CET 2011