public class CirclemapDraw
extends java.lang.Object
CirclemapTree.
Can draw a subtree from any node within the tree.
| Constructor and Description |
|---|
CirclemapDraw(CirclemapNode root,
NodeInfo info) |
CirclemapDraw(CirclemapTree model) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawContours(java.awt.Graphics2D g,
CirclemapNode node,
java.awt.Color color) |
void |
drawDescendantSubtreeBounds(java.awt.Graphics2D g,
CirclemapNode parent,
java.awt.Color color) |
void |
drawLabel(java.awt.Graphics2D g,
CirclemapNode node,
int depth,
double px,
double py,
double sf) |
void |
drawNode(java.awt.Graphics2D g,
CirclemapNode node,
int depth,
double px,
double py,
double sf) |
void |
drawNodeBounds(java.awt.Graphics2D g,
CirclemapNode selectedNode,
java.awt.Color color) |
void |
drawSubtreeBounds(java.awt.Graphics2D g,
CirclemapNode 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,
CirclemapNode node,
int depth,
double px,
double py,
double sf,
java.awt.Rectangle clipBounds,
ProgressObserver p) |
double |
getCX() |
double |
getCY() |
CirclemapNode |
getDrawRoot() |
NodeInfo |
getInfo() |
int |
getMaxDepth() |
CirclemapNode |
getNodeAt(double px,
double py)
Returns the node at the specified draw coordinates.
|
CirclemapNode |
getNodeAt(int px,
int py)
Returns the node at the specified view coordinates.
|
double |
getRadius() |
CirclemapNode |
getRoot() |
void |
setCX(double newValue) |
void |
setCY(double newValue) |
void |
setDrawRoot(CirclemapNode newValue) |
void |
setMaxDepth(int newValue) |
void |
setRadius(double newValue) |
public CirclemapDraw(CirclemapTree model)
public CirclemapDraw(CirclemapNode root, NodeInfo info)
public double getCX()
public void setCX(double newValue)
public double getCY()
public void setCY(double newValue)
public double getRadius()
public void setRadius(double newValue)
public void drawTree(java.awt.Graphics2D g,
ProgressObserver p)
public void drawTree0(java.awt.Graphics2D g,
CirclemapNode node,
int depth,
double px,
double py,
double sf,
java.awt.Rectangle clipBounds,
ProgressObserver p)
public void drawNode(java.awt.Graphics2D g,
CirclemapNode node,
int depth,
double px,
double py,
double sf)
public void drawLabel(java.awt.Graphics2D g,
CirclemapNode node,
int depth,
double px,
double py,
double sf)
public void drawContours(java.awt.Graphics2D g,
CirclemapNode node,
java.awt.Color color)
public NodeInfo getInfo()
public CirclemapNode getRoot()
public CirclemapNode getDrawRoot()
public void setDrawRoot(CirclemapNode newValue)
public void drawNodeBounds(java.awt.Graphics2D g,
CirclemapNode selectedNode,
java.awt.Color color)
public void drawSubtreeBounds(java.awt.Graphics2D g,
CirclemapNode selectedNode,
java.awt.Color color)
public void drawDescendantSubtreeBounds(java.awt.Graphics2D g,
CirclemapNode parent,
java.awt.Color color)
public CirclemapNode getNodeAt(int px, int py)
public CirclemapNode getNodeAt(double px, double py)
public void setMaxDepth(int newValue)
public int getMaxDepth()