|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.shader.MonoShader
A shader that will always return the same color regardless of what values are sent in.
Constructor Summary | |
MonoShader()
Create a new Mono shader with the default values for everything. |
|
MonoShader(java.awt.Color inColor)
MonoShader constructor comment. |
|
MonoShader(java.awt.Color inLineColor,
java.awt.Color inFillColor)
Create a new Mono Shader with the given Line and Fill colors, the label color is the same as the line color, and the highlight color is the default. |
|
MonoShader(java.awt.Color inLineColor,
java.awt.Color inFillColor,
java.awt.Color inHighlightColor)
Create a new Mono Shader with the given line, fill and highlight colors, the label color is the same as the line color. |
|
MonoShader(java.awt.Color inLineColor,
java.awt.Color inFillColor,
java.awt.Color inHighlightColor,
java.awt.Color inLabelColor)
Create a new Mono Shader with the given line, fill highlight and Label colors. |
Method Summary | |
float |
getAlpha()
Retrieve the alpha of the shape 0 is clear, 1 is opaque. |
ShaderPanel |
getEditPanel()
Returns a new edit panel for editing this type of shader. |
java.awt.Color |
getFillColor()
Color to use when filling a shape |
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.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.image.BufferedImage |
getFillPattern()
Get the pattern to use when filling a polygon. |
java.lang.String |
getFillPatternFileName()
Get the file name of the fill pattern. |
java.awt.Color |
getHighlightColor()
Color to use when highlighting a selected shape |
java.awt.Color |
getLabelColor()
Returns the color this MonoShader will use for displaying a label. |
java.awt.Font |
getLabelFont()
Return the font to use when displaying the label. |
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()
Generate the legend for this shader. |
java.awt.Color |
getLineColor()
Color to use when drawing lines |
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()
Retrieve the name of the shader |
Node |
getNode()
Get the configuration information for this shader |
java.awt.Stroke |
getStroke()
Return the stroke for this shader. |
void |
load(java.util.Properties inProperties)
Read the properties for the initialization of the shader from the properties sent in. |
void |
setAlpha(float inAlpha)
Set the alpha of the shape 0 means clear, 1 means opaque. |
void |
setFillColor(java.awt.Color inFillColor)
Sets the color to use when filling a shape |
void |
setFillPattern(java.awt.image.BufferedImage inFillPattern)
Sets the color to use when filling a shape |
void |
setFillPatternFileName(java.lang.String inFileName)
Set the file name of the fill pattern. |
void |
setHighlightColor(java.awt.Color inHighlightColor)
Color to use when highlighting a selected shape |
void |
setLabelColor(java.awt.Color inLabelColor)
Sets the color this MonoShader will use for displaying a label. |
void |
setLabelFont(java.awt.Font inFont)
Set the font to use when displaying the label. |
void |
setLineColor(java.awt.Color newLineColor)
Set the line color to be used when drawing lines |
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 MonoShader()
public MonoShader(java.awt.Color inColor)
public MonoShader(java.awt.Color inLineColor, java.awt.Color inFillColor)
public MonoShader(java.awt.Color inLineColor, java.awt.Color inFillColor, java.awt.Color inHighlightColor)
public MonoShader(java.awt.Color inLineColor, java.awt.Color inFillColor, java.awt.Color inHighlightColor, java.awt.Color inLabelColor)
Method Detail |
public java.awt.Color getLineColor()
public void setLineColor(java.awt.Color newLineColor)
public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color inFillColor)
public java.awt.image.BufferedImage getFillPattern()
public void setFillPattern(java.awt.image.BufferedImage inFillPattern)
public java.lang.String getFillPatternFileName()
public void setFillPatternFileName(java.lang.String inFileName) throws java.lang.Exception
java.lang.Exception
public java.awt.Color getHighlightColor()
public void setHighlightColor(java.awt.Color inHighlightColor)
public java.awt.Color getLabelColor()
public void setLabelColor(java.awt.Color inLabelColor)
public java.awt.Font getLabelFont()
public void setLabelFont(java.awt.Font inFont)
public java.awt.Stroke getStroke()
public void setStroke(java.awt.Stroke inStroke)
public java.lang.String getName()
public void setName(java.lang.String inName)
public float getAlpha()
public void setAlpha(float inAlpha)
public ShaderPanel getEditPanel()
getEditPanel
in interface EditableShader
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
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 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 |