|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.Style
Class to represent the style of a layer. This style contains the information about how an object should draw itself.
Constructor Summary | |
Style()
Constructs a new style with a single Feature Renderer, and a MonoShader with the default color scheme for Shaders. |
|
Style(Renderer inRenderer)
Constructs a new style with the given Renderer (if null is specified, then no renderer is used), and a MonoShader with the default color scheme for Shaders. |
|
Style(Renderer inRenderer,
Shader inShader)
Constructs a new style with the given Renderer (if null is specified, then no renderer is used), and the given shader (if null is specified then a mono shader is used with the default color scheme for mono shaders). |
Method Summary | |
void |
add(Labeler inLabeler)
Add a labeler to this layer. |
void |
add(Renderer inRenderer)
Add a renderer to this shape. |
void |
beginDraw()
Calls the beginDraw() method on the renderers. |
void |
beginLabel()
Calls the beginLabel() method on the labelers. |
void |
drawHighlight(Record inRecord,
java.awt.Graphics inGraphics,
Converter inConverter)
Function called when a shape is to be drawn. |
void |
drawLabel(Record inRecord,
java.awt.Graphics inGraphics,
Converter inConverter)
Function called when a shape is to be drawn. |
void |
drawShape(Record inRecord,
java.awt.Graphics inGraphics,
Converter inConverter)
Function called when a shape is to be drawn. |
void |
drawShape(Record inRecord,
java.awt.Graphics inGraphics,
Converter inConverter,
boolean inTop)
Function called when a shape is to be drawn, boolean if the top shader should be used. |
void |
endDraw()
Calls the endDraw() method on the renderers. |
void |
endLabel()
Calls the endLabel() method on the labelers. |
Labeler |
getLabeler(int inIndex)
Retrieve the labeler at the given index |
Node |
getNode()
Retrieve the configuration information for this style |
int |
getNumLabelers()
Return the number of labelers |
int |
getNumRenderers()
Return the number of renderers |
Renderer |
getRenderer(int inIndex)
Retrieve the renderer at the given index |
Shader |
getShader()
Get the shader to use with this style. |
java.lang.String |
getStyleName()
Get the name of this style. |
java.lang.String |
getStyleTitle()
Get the title of this style. |
Shader |
getTopShader()
Get the shader to use with this style. |
void |
remove(Labeler inLabeler)
Remove a labeler from this shape |
void |
remove(Renderer inRenderer)
Remove a renderer from this shape |
void |
removeAllLabelers()
Remove all the labelers from this Style. |
void |
removeAllRenderers()
Remove all the renderers from this Style. |
void |
setLabeler(int inIndex,
Labeler inLabeler)
Set the labeler |
void |
setNode(Node inNode)
Set the configuration information for this style |
void |
setRenderer(int inIndex,
Renderer inRenderer)
Set the Renderer |
void |
setShader(Shader newShader)
Set the shader to use with this style. |
void |
setStyleName(java.lang.String inStyleName)
Set the name of this style. |
void |
setStyleTitle(java.lang.String inStyleTitle)
Set the title of this style. |
void |
setTopShader(Shader newTopShader)
Set the shader to use with this style. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Style()
public Style(Renderer inRenderer)
public Style(Renderer inRenderer, Shader inShader)
Method Detail |
public void setStyleName(java.lang.String inStyleName)
public java.lang.String getStyleName()
public void setStyleTitle(java.lang.String inStyleTitle)
public java.lang.String getStyleTitle()
public void add(Renderer inRenderer)
public void remove(Renderer inRenderer)
public int getNumRenderers()
public void setRenderer(int inIndex, Renderer inRenderer)
public Renderer getRenderer(int inIndex)
public void removeAllRenderers()
public void add(Labeler inLabeler)
public void remove(Labeler inLabeler)
public int getNumLabelers()
public void setLabeler(int inIndex, Labeler inLabeler)
public Labeler getLabeler(int inIndex)
public void removeAllLabelers()
public Shader getShader()
public void setShader(Shader newShader)
public Shader getTopShader()
public void setTopShader(Shader newTopShader)
public void drawHighlight(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter)
public void drawLabel(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter)
public void drawShape(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter)
public void drawShape(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, boolean inTop)
public Node getNode()
public void setNode(Node inNode) throws java.lang.Exception
java.lang.Exception
public void beginDraw()
public void endDraw()
public void beginLabel()
public void endLabel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |