Public Member Functions | |
XYTreeRenderer () | |
Constructs a new renderer. | |
void | SetScaleFactor (double fScaleFactor) |
Sets the scale factor, which controls how large trees appear on the screen. | |
double | GetScaleFactor () |
Gets the scale factor, which controls how large trees appear on the screen. | |
void | SetMinDbh (double fMinDbh) |
Set the value for minimum DBH. | |
double | GetMinDbh () |
Gets the current value for minimum DBH. | |
void | drawItem (Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairInfo crosshairInfo, int pass) |
Draws the visual representation of a single data item. | |
Object | clone () throws CloneNotSupportedException |
Returns a clone of the renderer, but not a good one. | |
Private Attributes | |
double | m_fScaleFactor = 0.25 |
Controls how large trees appear on the screen. | |
double | m_fMinDbh = 0 |
The minimum DBH (z) value to display. |
The renderer expects the dataset to be an XYZDataset.
Original author of XYBubbleRenderer, upon which this is based - David Gilbert
Title: Data Visualizer
Description:
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
Object datavisualizer::XYTreeRenderer::clone | ( | ) | throws CloneNotSupportedException [inline] |
Returns a clone of the renderer, but not a good one.
CloneNotSupportedException | if the renderer cannot be cloned. |
void datavisualizer::XYTreeRenderer::drawItem | ( | Graphics2D | g2, | |
Rectangle2D | dataArea, | |||
PlotRenderingInfo | info, | |||
XYPlot | plot, | |||
ValueAxis | domainAxis, | |||
ValueAxis | rangeAxis, | |||
XYDataset | dataset, | |||
int | series, | |||
int | item, | |||
CrosshairInfo | crosshairInfo, | |||
int | pass | |||
) | [inline] |
Draws the visual representation of a single data item.
g2 | the graphics device. | |
dataArea | the area within which the data is being drawn. | |
info | collects information about the drawing. | |
plot | the plot (can be used to obtain standard color information etc). | |
domainAxis | the domain (horizontal) axis. | |
rangeAxis | the range (vertical) axis. | |
dataset | the dataset. | |
series | the series index (zero-based). | |
item | the item index (zero-based). | |
crosshairInfo | information about crosshairs on a plot. | |
pass | the pass index. |
double datavisualizer::XYTreeRenderer::GetMinDbh | ( | ) | [inline] |
Gets the current value for minimum DBH.
double datavisualizer::XYTreeRenderer::GetScaleFactor | ( | ) | [inline] |
Gets the scale factor, which controls how large trees appear on the screen.
void datavisualizer::XYTreeRenderer::SetMinDbh | ( | double | fMinDbh | ) | [inline] |
Set the value for minimum DBH.
fMinDbh | double Value for minimum DBH. |
void datavisualizer::XYTreeRenderer::SetScaleFactor | ( | double | fScaleFactor | ) | [inline] |
Sets the scale factor, which controls how large trees appear on the screen.
fScaleFactor | double Scale factor. |