Public Member Functions | |
XYTreeRenderer (float fLengthX, float fLengthY) | |
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 (java.awt.Graphics2D g2, XYItemRendererState state, java.awt.geom.Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, 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. | |
float | m_fPlotArea |
The total plot area, whether or not the whole plot is being displayed. | |
Classes | |
class | TreeTooltipGenerator |
Provides a more informative tooltip string for cell values. More... |
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
datavisualizer.XYTreeRenderer.XYTreeRenderer | ( | float | fLengthX, | |
float | fLengthY | |||
) |
Constructs a new renderer.
fLengthX | Plot length in the X direction. | |
fLengthY | Plot length in the Y direction. |
void datavisualizer.XYTreeRenderer.SetScaleFactor | ( | double | fScaleFactor | ) |
Sets the scale factor, which controls how large trees appear on the screen.
fScaleFactor | double Scale factor. |
double datavisualizer.XYTreeRenderer.GetScaleFactor | ( | ) |
Gets the scale factor, which controls how large trees appear on the screen.
void datavisualizer.XYTreeRenderer.SetMinDbh | ( | double | fMinDbh | ) |
Set the value for minimum DBH.
fMinDbh | double Value for minimum DBH. |
double datavisualizer.XYTreeRenderer.GetMinDbh | ( | ) |
Gets the current value for minimum DBH.
void datavisualizer.XYTreeRenderer.drawItem | ( | java.awt.Graphics2D | g2, | |
XYItemRendererState | state, | |||
java.awt.geom.Rectangle2D | dataArea, | |||
PlotRenderingInfo | info, | |||
XYPlot | plot, | |||
ValueAxis | domainAxis, | |||
ValueAxis | rangeAxis, | |||
XYDataset | dataset, | |||
int | series, | |||
int | item, | |||
CrosshairState | crosshairState, | |||
int | pass | |||
) |
Draws the visual representation of a single data item.
g2 | - the graphics device. | |
state | - the renderer state. | |
dataArea | - the area within which the data is being rendered. | |
info | - collects drawing info. | |
plot | - the plot (can be used to obtain standard color information etc). | |
domainAxis | - the domain axis. | |
rangeAxis | - the range axis. | |
dataset | - the dataset. | |
series | - the series index (zero-based). | |
item | - the item index (zero-based). | |
crosshairState | - crosshair information for the plot (null permitted). | |
pass | - the pass index. |
Object datavisualizer.XYTreeRenderer.clone | ( | ) | throws CloneNotSupportedException |
Returns a clone of the renderer, but not a good one.
CloneNotSupportedException | if the renderer cannot be cloned. |
double datavisualizer.XYTreeRenderer.m_fScaleFactor = 0.25 [private] |
Controls how large trees appear on the screen.
double datavisualizer.XYTreeRenderer.m_fMinDbh = 0 [private] |
The minimum DBH (z) value to display.
float datavisualizer.XYTreeRenderer.m_fPlotArea [private] |
The total plot area, whether or not the whole plot is being displayed.
This allows the renderer to scale the size of the tree circles.