Public Member Functions | |
XYCellRenderer () | |
Constructor. | |
void | drawItem (Graphics2D jGraphics2, Rectangle2D jDataArea, PlotRenderingInfo oInfo, XYPlot oPlot, ValueAxis oDomainAxis, ValueAxis oRangeAxis, XYDataset oDataset, int iSeries, int iItem, CrosshairInfo oCrosshairInfo, int iPass) |
Draws a single grid cell. | |
void | SetMaximumValue (float fValue) |
Sets the value of a cell above which all cells will be painted the maximum color. | |
void | SetMinimumValue (float fValue) |
Sets the value of a cell below which all cells will be painted the minimum color. | |
void | SetKneeValue (float fValue) |
Sets the knee value which corresponds to the knee color. | |
void | SetMaximumColor (int iRed, int iGreen, int iBlue, int iSeries) throws javawrapper.ModelException |
Sets the maximum color. | |
void | SetMinimumColor (int iRed, int iGreen, int iBlue, int iSeries) throws javawrapper.ModelException |
Sets the minimum color. | |
void | SetKneeColor (int iRed, int iGreen, int iBlue, int iSeries) throws javawrapper. ModelException |
Sets the knee color. | |
void | SetKneeColor (Color jColor, int iSeries) |
Sets the knee color for a series. | |
void | SetMaximumColor (Color jColor, int iSeries) |
Sets the max color for a series. | |
void | SetMinimumColor (Color jColor, int iSeries) |
Sets the minimum color for a series. | |
void | SetXCellLength (float fLength) |
Sets the X cell length. | |
void | SetYCellLength (float fLength) |
Sets the Y cell length. | |
float | GetMinimumValue () |
Gets the minimum value below which the minimum color is always used. | |
void | SetUseTexture (boolean bUse) |
Whether to draw the grids with a texture or with a solid color. | |
float | GetMaximumValue () |
Gets the maximum value above which the maximum color is always used. | |
float | GetKneeValue () |
Gets the knee value at which the knee color is always used. | |
Color | GetMinimumColor (int iSeries) |
Gets the minimum color for a series. | |
Color | GetMaximumColor (int iSeries) |
Gets the maximum color for a series. | |
Color | GetKneeColor (int iSeries) |
Gets the knee color for a series. | |
Paint | GetSeriesKneePaint (int iSeries) |
Returns the knee color for a series. | |
Paint | GetSeriesMinPaint (int iSeries) |
Returns the knee color for a series. | |
Protected Member Functions | |
void | SetSeriesMinPaint (int iSeries, Color jColor) |
Sets the minimum color for a series. | |
void | SetSeriesKneePaint (int iSeries, Color jColor) |
Sets the knee color for a series. | |
Private Attributes | |
float | m_fXCellSize = 8 |
Length of each cell in the X direction, in meters. | |
float | m_fYCellSize = 8 |
Length of each cell in the Y direction, in meters. | |
float | m_fMinimumValue = 0 |
The value of a cell below which all cells are minimum color - defaults to 0. | |
float | m_fMaximumValue = 100 |
The value of a cell above which all cells are maximum color - defaults to 100. | |
float | m_fKneeValue = 50 |
The value of a cell at the knee color - defaults to 50. | |
org.jfree.util.PaintList | m_jKneePaintList = new org.jfree.util.PaintList() |
The knee paint list. | |
org.jfree.util.PaintList | m_jMinPaintList = new org.jfree.util.PaintList() |
The minimum color paint list. | |
boolean | m_bTexture = false |
Whether to draw the shapes with a texture (true), or in solid color (false). |
The rectangle size can be set; the size defaults to the same as the underlying grid size.
The X and Y are expected to be integers which equal cell numbers in the X and Y directions. The Z is expected to be a number which controls the color intensity of the cell. The cells are filled in a specified color at the specified intensity. For a range of values, the grayscale color gradient looks nice. I would intensively test any other color.
The color gradient can be controlled by setting the minimum, maximum, and knee RGB values. Below the minimum value, all cells are minimum color (defaults to black). Above the maximum value, all cells are maximum color (defaults to white). The knee value represents the mid-point knee color (defaults to 50% gray). This lets you tweak the display if your dataset is not evenly distributed.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
Constructor. Sets defaults. |
|
Draws a single grid cell. If there is no Z value, nothing is drawn.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) May 5, 2004: Made this from grayscale to color (LEM) May 11, 2004: Made this both fill and draw the rectangles so there would be grid lines. (LEM) June 22, 2004: Added support for series colors (LEM) June 29, 2004: Made it not draw anything if a value was null |
|
Gets the knee color for a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the knee value at which the knee color is always used.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the maximum color for a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the maximum value above which the maximum color is always used.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the minimum color for a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the minimum value below which the minimum color is always used.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Returns the knee color for a series. If the series has not been explicitly set, it returns the default.
|
|
Returns the knee color for a series. If the series has not been explicitly set, it returns the default.
|
|
Sets the knee color for a series.
|
|
Sets the knee color.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) May 5, 2004: Updated to take RGB instead of grayscale (LEM) |
|
Sets the knee value which corresponds to the knee color.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the max color for a series.
|
|
Sets the maximum color.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) May 5, 2004: Updated to take RGB instead of grayscale (LEM) |
|
Sets the value of a cell above which all cells will be painted the maximum color.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the minimum color for a series.
|
|
Sets the minimum color.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) May 5, 2004: Updated to take RGB instead of grayscale (LEM) |
|
Sets the value of a cell below which all cells will be painted the minimum color.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the knee color for a series.
|
|
Sets the minimum color for a series.
|
|
Whether to draw the grids with a texture or with a solid color. The texture can be drawn over a solid color.
|
|
Sets the X cell length.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the Y cell length.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Whether to draw the shapes with a texture (true), or in solid color (false). The color used is the same either way. |
|
The value of a cell at the knee color - defaults to 50. Applies to all series. |
|
The value of a cell above which all cells are maximum color - defaults to 100. Applies to all series. |
|
The value of a cell below which all cells are minimum color - defaults to 0. Applies to all series. |