net.ontopia.topicmaps.utils
Class TopicTreeRendrer
java.lang.Object
net.ontopia.topicmaps.utils.TopicTreeRendrer
public class TopicTreeRendrer
- extends java.lang.Object
EXPERIMENTAL.
- Since:
- 1.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
protected TopicTreeNode root
current
protected TopicIF current
g2d
protected java.awt.Graphics2D g2d
str
protected StringifierIF str
title
protected java.lang.String title
bnscope
protected java.util.Collection bnscope
vnscope
protected java.util.Collection vnscope
x
protected int x
y
protected int y
xmargin
protected int xmargin
ymargin
protected int ymargin
xoffset
protected int xoffset
yoffset
protected int yoffset
xtextmargin
protected int xtextmargin
ytextmargin
protected int ytextmargin
height
protected int height
TopicTreeRendrer
public TopicTreeRendrer(TopicTreeNode root,
TopicIF current)
draw
public void draw(java.awt.Graphics2D g2d)
renderImage
public java.awt.image.BufferedImage renderImage()
setTitle
public void setTitle(java.lang.String title)
getMaxX
public int getMaxX()
getMaxY
public int getMaxY()
setTopicNameScope
public void setTopicNameScope(java.util.Collection bnscope)
setVariantScope
public void setVariantScope(java.util.Collection vnscope)
drawNode
protected int drawNode(TopicTreeNode node)
getLeft
protected int getLeft(int x)
getRight
protected int getRight(int x,
java.lang.String title)
getWidth
protected int getWidth(java.lang.String title)
getTop
protected int getTop(int y)
getMiddle
protected int getMiddle(int y)
getBottom
protected int getBottom(int y)
getTextStart
protected int getTextStart(int x)
getTextTop
protected int getTextTop(int y)
getMaxX
protected int getMaxX(TopicTreeNode node,
int x)
getMaxY
protected int getMaxY(TopicTreeNode node,
int y)
getTitle
protected java.lang.String getTitle(TopicTreeNode node)
Copyright © 2000-2012 Ontopia.