|
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.sunray.SunrayDraw
public class SunrayDraw
SunrayDraw draws a CirclemapTree.
Can draw the tree from any node within the tree.
| Constructor Summary | |
|---|---|
SunrayDraw(SunrayNode root,
NodeInfo info)
|
|
SunrayDraw(SunrayTree model)
Creates a new instance. |
|
| Method Summary | |
|---|---|
static void |
addSeg(java.awt.geom.GeneralPath mc,
double x,
double y,
double startAngle,
double arc,
double radius)
|
static java.awt.geom.GeneralPath |
createArc(double x,
double y,
double startAngle,
double arc,
double outerRadius,
double innerRadius)
|
void |
drawContours(java.awt.Graphics2D g,
SunrayNode node,
java.awt.Color color)
|
void |
drawDescendants(java.awt.Graphics2D g,
SunrayNode node)
|
void |
drawDescendantSubtreeBounds(java.awt.Graphics2D g,
SunrayNode selectedNode,
java.awt.Color color)
|
void |
drawLabel(java.awt.Graphics2D g,
SunrayNode node)
|
void |
drawNode(java.awt.Graphics2D g,
SunrayNode node)
|
void |
drawNodeBounds(java.awt.Graphics2D g,
SunrayNode node,
java.awt.Color color)
|
void |
drawSubtreeBounds(java.awt.Graphics2D g,
SunrayNode node,
java.awt.Color color)
|
void |
drawTree(java.awt.Graphics2D g)
Draws the Sunburst tree onto the supplied graphics object. |
void |
drawTree(java.awt.Graphics2D g,
SunrayNode node)
|
double |
getCX()
|
double |
getCY()
|
NodeInfo |
getInfo()
|
double |
getInnerRadius()
|
SunrayNode |
getNodeAt(int x,
int y)
|
double |
getOuterRadius()
|
SunrayNode |
getRoot()
|
double |
getRotation()
|
double |
getTheta(double x,
double y)
Converts screen coordinates to polar coordinates in degrees. |
java.lang.String |
getToolTipText(int x,
int y)
|
int |
getTotalDepth()
|
void |
setCX(double newValue)
|
void |
setCY(double newValue)
|
void |
setInnerRadius(double newValue)
|
void |
setOuterRadius(double newValue)
|
void |
setRotation(double newValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SunrayDraw(SunrayTree model)
public SunrayDraw(SunrayNode root,
NodeInfo info)
| Method Detail |
|---|
public NodeInfo getInfo()
public SunrayNode getRoot()
public double getRotation()
public void setRotation(double newValue)
public int getTotalDepth()
public double getCX()
public void setCX(double newValue)
public double getCY()
public void setCY(double newValue)
public double getInnerRadius()
public void setInnerRadius(double newValue)
public double getOuterRadius()
public void setOuterRadius(double newValue)
public double getTheta(double x,
double y)
public SunrayNode getNodeAt(int x,
int y)
public java.lang.String getToolTipText(int x,
int y)
public void drawNodeBounds(java.awt.Graphics2D g,
SunrayNode node,
java.awt.Color color)
public void drawSubtreeBounds(java.awt.Graphics2D g,
SunrayNode node,
java.awt.Color color)
public void drawDescendantSubtreeBounds(java.awt.Graphics2D g,
SunrayNode selectedNode,
java.awt.Color color)
public static java.awt.geom.GeneralPath createArc(double x,
double y,
double startAngle,
double arc,
double outerRadius,
double innerRadius)
public static void addSeg(java.awt.geom.GeneralPath mc,
double x,
double y,
double startAngle,
double arc,
double radius)
public void drawTree(java.awt.Graphics2D g)
public void drawTree(java.awt.Graphics2D g,
SunrayNode node)
public void drawContours(java.awt.Graphics2D g,
SunrayNode node,
java.awt.Color color)
public void drawDescendants(java.awt.Graphics2D g,
SunrayNode node)
public void drawLabel(java.awt.Graphics2D g,
SunrayNode node)
public void drawNode(java.awt.Graphics2D g,
SunrayNode node)
|
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 | ||||||||