|
Treeviz 0.37 2010-10-17 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.tree.rectmap.RectmapDraw
public class RectmapDraw
RectmapDraw draws a RectmapTree.
Can draw a subtree from any node within the tree.
| Constructor Summary | |
|---|---|
RectmapDraw(RectmapNode root,
NodeInfo info)
|
|
RectmapDraw(RectmapTree model)
|
|
| Method Summary | |
|---|---|
void |
drawContours(java.awt.Graphics2D g,
RectmapNode node,
java.awt.Color color)
|
void |
drawLabel(java.awt.Graphics2D g,
RectmapNode node,
int depth,
double px,
double py,
double sfh,
double sfv)
|
void |
drawNode(java.awt.Graphics2D g,
RectmapNode node,
int depth,
double px,
double py,
double sfh,
double sfv)
|
void |
drawNodeBounds(java.awt.Graphics2D g,
RectmapNode selectedNode,
java.awt.Color color)
|
void |
drawTree(java.awt.Graphics2D g,
ProgressObserver p)
Draws the tree onto the supplied graphics object. |
void |
drawTree0(java.awt.Graphics2D g,
RectmapNode node,
int depth,
double px,
double py,
double pwidth,
double pheight,
ProgressObserver p)
Recursive part of the drawing routine. |
RectmapNode |
getDrawRoot()
|
double |
getHeight()
|
NodeInfo |
getInfo()
|
int |
getMaxDepth()
|
RectmapNode |
getNodeAt(double px,
double py)
Returns the node at the specified draw coordinates. |
RectmapNode |
getNodeAt(int px,
int py)
Returns the node at the specified view coordinates. |
RectmapNode |
getRoot()
|
double |
getWidth()
|
double |
getX()
|
double |
getY()
|
void |
setDrawRoot(RectmapNode newValue)
|
void |
setHeight(double newValue)
|
void |
setMaxDepth(int newValue)
|
void |
setWidth(double newValue)
|
void |
setX(double newValue)
|
void |
setY(double newValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RectmapDraw(RectmapTree model)
public RectmapDraw(RectmapNode root,
NodeInfo info)
| Method Detail |
|---|
public double getX()
public void setX(double newValue)
public int getMaxDepth()
public void setMaxDepth(int newValue)
public double getY()
public void setY(double newValue)
public double getWidth()
public void setWidth(double newValue)
public double getHeight()
public void setHeight(double newValue)
public void drawTree(java.awt.Graphics2D g,
ProgressObserver p)
public void drawTree0(java.awt.Graphics2D g,
RectmapNode node,
int depth,
double px,
double py,
double pwidth,
double pheight,
ProgressObserver p)
public void drawNode(java.awt.Graphics2D g,
RectmapNode node,
int depth,
double px,
double py,
double sfh,
double sfv)
public void drawLabel(java.awt.Graphics2D g,
RectmapNode node,
int depth,
double px,
double py,
double sfh,
double sfv)
public void drawContours(java.awt.Graphics2D g,
RectmapNode node,
java.awt.Color color)
public NodeInfo getInfo()
public RectmapNode getRoot()
public RectmapNode getDrawRoot()
public void setDrawRoot(RectmapNode newValue)
public void drawNodeBounds(java.awt.Graphics2D g,
RectmapNode selectedNode,
java.awt.Color color)
public RectmapNode getNodeAt(int px,
int py)
px - py -
public RectmapNode getNodeAt(double px,
double py)
|
Copyright 2007-2008 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||