|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.shader.SimpleShader
gistoolkit.display.shader.RangeShader
Returns a color bassed on a value. If you want a shape shaded based on the numerical value of one of it's attributes in the following scheme. < 20 is one color, < 40 is another color, < 60 is another color, everything else is the default color. then this shader should work.
Constructor Summary | |
RangeShader()
Creates new RangeShader |
Method Summary | |
void |
addColor(double inMinValue,
double inMaxValue,
java.awt.Color inFillColor,
java.awt.Color inLineColor,
java.awt.Color inLabelColor)
add another color to the list null colors will not be drawn |
java.lang.String |
getColumnName()
Get the name of the column to shade by |
ShaderPanel |
getEditPanel()
return the panel needed to edit this shader |
java.awt.Color[] |
getFillColors()
return the list of fill colors |
java.awt.Graphics |
getFillGraphics(java.awt.Graphics inGraphics,
java.lang.Object[] inAttributes,
java.lang.String[] inNames)
Set up the graphics context for the drawing of lines. |
java.awt.Color[] |
getLabelColors()
return the list of Label colors |
java.awt.Graphics |
getLabelGraphics(java.awt.Graphics inGraphics,
java.lang.Object[] inAttributes,
java.lang.String[] inNames)
Set up the graphics context for the drawing of labels. |
java.awt.image.BufferedImage |
getLegend()
Generate a lagend from this shader. |
java.awt.Color[] |
getLineColors()
return the list of line colors |
java.awt.Graphics |
getLineGraphics(java.awt.Graphics inGraphics,
java.lang.Object[] inAttributes,
java.lang.String[] inNames)
Set up the graphics context for the drawing of lines. |
double[] |
getMaxValues()
return the list of maximumvalues, and the list of doubles |
double[] |
getMinValues()
return the list of minimum values, and the list of doubles |
Node |
getNode()
Get the configuration information for this shader |
void |
removeAllEntries()
Removes all entries from the shader |
void |
setColumnName(java.lang.String inColumnName)
Set the name of the column to shade by |
void |
setNode(Node inNode)
Set the configuration information for this shader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RangeShader()
Method Detail |
public void removeAllEntries()
public void addColor(double inMinValue, double inMaxValue, java.awt.Color inFillColor, java.awt.Color inLineColor, java.awt.Color inLabelColor)
public double[] getMinValues()
public double[] getMaxValues()
public java.awt.Color[] getFillColors()
public java.awt.Color[] getLineColors()
public java.awt.Color[] getLabelColors()
public java.lang.String getColumnName()
getColumnName
in class SimpleShader
public void setColumnName(java.lang.String inColumnName)
setColumnName
in class SimpleShader
public ShaderPanel getEditPanel()
getEditPanel
in interface EditableShader
public java.awt.Graphics getLineGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getLineGraphics
in interface Shader
getLineGraphics
in class SimpleShader
public java.awt.Graphics getFillGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getFillGraphics
in interface Shader
getFillGraphics
in class SimpleShader
public java.awt.Graphics getLabelGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getLabelGraphics
in interface Shader
getLabelGraphics
in class SimpleShader
public java.awt.image.BufferedImage getLegend()
getLegend
in interface Shader
getLegend
in class SimpleShader
public Node getNode()
getNode
in interface Shader
getNode
in class SimpleShader
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface Shader
setNode
in class SimpleShader
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |