|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.shader.SimpleShader
A simple shader to handle the simplest case. Usefull for extending.
Constructor Summary | |
SimpleShader()
Creates new SimpleShader |
Method Summary | |
float |
getAlpha()
Retrieve the alpha of the shape 0 is clear, 1 is opaque. |
java.lang.String |
getColumnName()
Get the name of the column to shade by |
protected float[] |
getDashArrayFromString(java.lang.String inString)
Construct the dash array from the string that saves it to configuration. |
protected java.awt.AlphaComposite |
getDefaultAlphaComposite()
Return the default alpha composite |
java.awt.Color |
getDefaultFillColor()
Retrieve the default fill color |
java.awt.Font |
getDefaultFont()
Get the font to be used when writing labels |
java.awt.Color |
getDefaultHighlightColor()
Retrieve the default Highligh color |
java.awt.Color |
getDefaultLabelColor()
Retrieve the default fill color |
java.awt.Color |
getDefaultLineColor()
Retrieve the default fill color |
java.lang.String |
getDescription()
A description to be displayed to the user that indicates what this scale bar does. |
ShaderEditDialog |
getEditDialog()
Each shader should have a dialog to display to edit 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.Graphics |
getFillHighlightGraphics(java.awt.Graphics inGraphics,
java.lang.Object[] inAttributes,
java.lang.String[] inNames)
Set up the graphics context for the drawing of lines. |
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 lines. |
java.awt.Graphics |
getLabelHighlightGraphics(java.awt.Graphics inGraphics,
java.lang.Object[] inAttributes,
java.lang.String[] inNames)
Set up the graphics context for the drawing of lines. |
java.awt.image.BufferedImage |
getLegend()
Return the Legend for this shader |
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. |
java.awt.Graphics |
getLineHighlightGraphics(java.awt.Graphics inGraphics,
java.lang.Object[] inAttributes,
java.lang.String[] inNames)
Set up the graphics context for the highlighting of lines. |
java.lang.String |
getName()
Get the name of the shader |
Node |
getNode()
Get the configuration information for this shader |
protected Node |
getNodeFromStroke(java.awt.Stroke inStroke)
|
protected java.lang.String |
getStringFromDashArray(float[] inDashArray)
Construct the string for saving the dash array from the array sent in. |
java.awt.Stroke |
getStroke()
Return the stroke for this shader. |
protected java.awt.Stroke |
getStrokeFromNode(Node inNode)
|
void |
load(java.util.Properties inProperties)
Read the properties for the initialization of the rendere from the properties sent in. |
void |
setAlpha(float inAlpha)
Set the alpha of the shape 0 means clear, 1 means opaque. |
void |
setColumnName(java.lang.String inColumnName)
Set the name of the column to shade by |
void |
setDefaultFillColor(java.awt.Color inColor)
Set the default fill color |
void |
setDefaultFont(java.awt.Font inFont)
Set the font to be used when writing labels |
void |
setDefaultHighlightColor(java.awt.Color inColor)
Set the default Highligh color |
void |
setDefaultLabelColor(java.awt.Color inColor)
Set the default fill color |
void |
setDefaultLineColor(java.awt.Color inColor)
Set the default fill color |
void |
setName(java.lang.String inName)
Set the name of the shader |
void |
setNode(Node inNode)
Set the configuration information for this shader |
void |
setStroke(java.awt.Stroke inStroke)
Sets the stroke for this shader, will not allow null. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleShader()
Method Detail |
public java.lang.String getDescription()
public java.awt.Color getDefaultFillColor()
public void setDefaultFillColor(java.awt.Color inColor)
public java.awt.Color getDefaultLineColor()
public void setDefaultLineColor(java.awt.Color inColor)
public java.awt.Color getDefaultLabelColor()
public void setDefaultLabelColor(java.awt.Color inColor)
public java.awt.Color getDefaultHighlightColor()
public void setDefaultHighlightColor(java.awt.Color inColor)
public java.lang.String getName()
public void setName(java.lang.String inName)
public java.lang.String getColumnName()
public void setColumnName(java.lang.String inColumnName)
public java.awt.Font getDefaultFont()
public void setDefaultFont(java.awt.Font inFont)
protected java.awt.AlphaComposite getDefaultAlphaComposite()
public float getAlpha()
public void setAlpha(float inAlpha)
public java.awt.Stroke getStroke()
public void setStroke(java.awt.Stroke inStroke)
public ShaderEditDialog getEditDialog()
public java.awt.Graphics getLineGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getLineGraphics
in interface Shader
public java.awt.Graphics getLineHighlightGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getLineHighlightGraphics
in interface Shader
public java.awt.Graphics getFillGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getFillGraphics
in interface Shader
public java.awt.Graphics getFillHighlightGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getFillHighlightGraphics
in interface Shader
public java.awt.Graphics getLabelGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getLabelGraphics
in interface Shader
public java.awt.Graphics getLabelHighlightGraphics(java.awt.Graphics inGraphics, java.lang.Object[] inAttributes, java.lang.String[] inNames)
getLabelHighlightGraphics
in interface Shader
public void load(java.util.Properties inProperties) throws java.lang.Exception
load
in interface Shader
java.lang.Exception
public java.awt.image.BufferedImage getLegend()
getLegend
in interface Shader
protected Node getNodeFromStroke(java.awt.Stroke inStroke)
protected java.lang.String getStringFromDashArray(float[] inDashArray)
protected float[] getDashArrayFromString(java.lang.String inString)
protected java.awt.Stroke getStrokeFromNode(Node inNode)
public Node getNode()
getNode
in interface Shader
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface Shader
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |