|
|||||||||||
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.BinShader
Shades features in bins of colors. There are a series of bin colors and names such as Low(Yellow) Medium(Green) High(Red). A row is assigned to these different bins based on the values of two columns. The first column determines which entry the row should be assigned to. Given the data Name Value Snuggle 3 nap 6 snore 20 snooze 10 We want to shade the snuggle and nap into entries of yellow, green or red like this Values MinYellow Max Yellow Min Green Max Green Min Red, Max Red snuggle, nap 2 3 3 4 4 10 snore, snooze 5 7 7 12 12 40 With an entry with values of snuggle, map, and the biven ranges along with bins of yellow green and red, this shader could accomplish the shading required.
Constructor Summary | |
BinShader()
Creates new BinShader |
Method Summary | |
void |
addBin(java.lang.String inBinName,
java.awt.Color inBinColor)
Add a bin to the list of available bins. |
void |
addEntry(java.lang.String[] inValues,
double[] inMinValues,
double[] inMaxValues)
Adds an entry to the list. |
java.awt.Color[] |
getBinColors()
Returns all the BinColors |
java.lang.String |
getBinColumnName()
Get the name of the column to shade by |
java.lang.String[] |
getBinNames()
Returns all the Bin Names |
ShaderPanel |
getEditPanel()
return the panel needed to edit this shader |
BinEntry[] |
getEntries()
Returns all the entries in the shader. |
java.awt.Graphics |
getFillGraphics(java.awt.Graphics inGraphics,
java.lang.Object[] inAttributes,
java.lang.String[] inNames)
Set up the graphics context for the filling of shapes. |
java.awt.image.BufferedImage |
getLegend()
Generate a lagend from this shader. |
Node |
getNode()
Get the configuration information for this shader |
java.lang.String |
getValueColumnName()
Get the name of the column to shade by |
void |
removeAllBins()
Remove all bins. |
void |
removeAllEntries()
remove all entries from the shader. |
boolean |
removeBin(java.lang.String inBinName)
Looks through the list of bins and tries to find the one with this name. |
void |
setBinColumnName(java.lang.String inBinColumnName)
Set the name of the column to shade by |
void |
setNode(Node inNode)
Set the configuration information for this shader |
void |
setValueColumnName(java.lang.String inValueColumnName)
Set the name of the column to shade by |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinShader()
Method Detail |
public java.lang.String getValueColumnName()
public void setValueColumnName(java.lang.String inValueColumnName)
public java.lang.String getBinColumnName()
public void setBinColumnName(java.lang.String inBinColumnName)
public java.lang.String[] getBinNames()
public java.awt.Color[] getBinColors()
public BinEntry[] getEntries()
public void removeAllEntries()
public void removeAllBins()
public void addBin(java.lang.String inBinName, java.awt.Color inBinColor)
public boolean removeBin(java.lang.String inBinName)
public void addEntry(java.lang.String[] inValues, double[] inMinValues, double[] inMaxValues)
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
public java.awt.Graphics getFillGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
SimpleShader
getFillGraphics
in interface Shader
getFillGraphics
in class SimpleShader
public ShaderPanel getEditPanel()
getEditPanel
in interface EditableShader
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |