net.ontopia.topicmaps.utils
Class TopicTreeRendrer

java.lang.Object
  extended by net.ontopia.topicmaps.utils.TopicTreeRendrer

public class TopicTreeRendrer
extends java.lang.Object

EXPERIMENTAL.

Since:
1.2

Field Summary
protected  java.util.Collection bnscope
           
protected  TopicIF current
           
protected  java.awt.Graphics2D g2d
           
protected  int height
           
protected  TopicTreeNode root
           
protected  StringifierIF str
           
protected  java.lang.String title
           
protected  java.util.Collection vnscope
           
protected  int x
           
protected  int xmargin
           
protected  int xoffset
           
protected  int xtextmargin
           
protected  int y
           
protected  int ymargin
           
protected  int yoffset
           
protected  int ytextmargin
           
 
Constructor Summary
TopicTreeRendrer(TopicTreeNode root, TopicIF current)
           
 
Method Summary
 void draw(java.awt.Graphics2D g2d)
           
protected  int drawNode(TopicTreeNode node)
           
protected  int getBottom(int y)
           
protected  int getLeft(int x)
           
 int getMaxX()
           
protected  int getMaxX(TopicTreeNode node, int x)
           
 int getMaxY()
           
protected  int getMaxY(TopicTreeNode node, int y)
           
protected  int getMiddle(int y)
           
protected  int getRight(int x, java.lang.String title)
           
protected  int getTextStart(int x)
           
protected  int getTextTop(int y)
           
protected  java.lang.String getTitle(TopicTreeNode node)
           
protected  int getTop(int y)
           
protected  int getWidth(java.lang.String title)
           
 java.awt.image.BufferedImage renderImage()
           
 void setTitle(java.lang.String title)
           
 void setTopicNameScope(java.util.Collection bnscope)
           
 void setVariantScope(java.util.Collection vnscope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TopicTreeRendrer

public TopicTreeRendrer(TopicTreeNode root,
                        TopicIF current)
Method Detail

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.