|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.event.AbstractGTComponent
org.geotools.styling.StrokeImpl
Provides a Java representation of the Stroke object in an SLD document. A stroke defines how a line is rendered.
| Field Summary |
| Fields inherited from class org.geotools.event.AbstractGTComponent |
notification |
| Fields inherited from interface org.geotools.styling.Stroke |
DEFAULT, NULL |
| Constructor Summary | |
protected |
StrokeImpl()
Creates a new instance of Stroke |
protected |
StrokeImpl(FilterFactory factory)
|
| Method Summary | |
void |
accept(StyleVisitor visitor)
|
java.lang.Object |
clone()
Clone the StrokeImpl object. |
boolean |
equals(java.lang.Object oth)
Compares this stroke with another stroke for equality. |
Expression |
getColor()
This parameter gives the solid color that will be used for a stroke. |
java.awt.Color |
getColor(Feature feature)
This parameter gives the solid color that will be used for a stroke. |
float[] |
getDashArray()
This parameter encodes the dash pattern as a series of floats. |
Expression |
getDashOffset()
This param determines where the dash pattern should start from. |
Graphic |
getGraphicFill()
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use. |
Graphic |
getGraphicStroke()
This parameter indicates that a repeated-linear-graphic graphic stroke type will be used and specifies the graphic to use. |
Expression |
getLineCap()
This parameter controls how line strings should be capped. |
Expression |
getLineJoin()
This parameter controls how line strings should be joined together. |
Expression |
getOpacity()
This specifies the level of translucency to use when rendering the stroke. |
Expression |
getWidth()
This parameter gives the absolute width (thickness) of a stroke in pixels encoded as a float. |
int |
hashCode()
|
void |
setColor(Expression color)
This parameter sets the solid color that will be used for a stroke. |
void |
setColor(java.lang.String color)
This parameter sets the solid color that will be used for a stroke. |
void |
setDashArray(float[] dashPattern)
This parameter encodes the dash pattern as a series of floats. |
void |
setDashOffset(Expression dashOffset)
This param determines where the dash pattern should start from. |
void |
setFilterFactory(FilterFactory factory)
|
void |
setGraphicFill(Graphic fillGraphic)
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use. |
void |
setGraphicStroke(Graphic strokeGraphic)
This parameter indicates that a repeated-linear-graphic graphic stroke type will be used and specifies the graphic to use. |
void |
setLineCap(Expression lineCap)
This parameter controls how line strings should be capped. |
void |
setLineJoin(Expression lineJoin)
This parameter controls how line strings should be joined together. |
void |
setOpacity(Expression opacity)
This specifies the level of translucency to use when rendering the stroke. |
void |
setWidth(Expression width)
This parameter sets the absolute width (thickness) of a stroke in pixels encoded as a float. |
java.lang.String |
toString()
|
| Methods inherited from class org.geotools.event.AbstractGTComponent |
changed, fireChanged, fireChildChanged, getNote, getParent, removed, setNote |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.geotools.event.GTComponent |
changed, getNote, getParent, removed, setNote |
| Constructor Detail |
protected StrokeImpl()
protected StrokeImpl(FilterFactory factory)
| Method Detail |
public void setFilterFactory(FilterFactory factory)
public Expression getColor()
getColor in interface Strokepublic void setColor(Expression color)
setColor in interface Strokecolor - The color of the stroke encoded as a hexidecimal RGB value.
This must not be null.
java.lang.IllegalArgumentException - DOCUMENT ME!public void setColor(java.lang.String color)
color - The color of the stroke encoded as a hexidecimal RGB value.public float[] getDashArray()
-- --- -- --- --
--- -- --- -- --- --
getDashArray in interface Strokepublic void setDashArray(float[] dashPattern)
-- --- -- ---
-- --- -- --- --
--- --
setDashArray in interface StrokedashPattern - The dash pattern as an array of float values in the
form "dashlength gaplength ..."public Expression getDashOffset()
getDashOffset in interface Strokepublic void setDashOffset(Expression dashOffset)
setDashOffset in interface StrokedashOffset - The distance into the dash pattern that should act as
the start.public Graphic getGraphicFill()
getGraphicFill in interface Strokepublic void setGraphicFill(Graphic fillGraphic)
setGraphicFill in interface StrokefillGraphic - The graphic to use as a stipple fill. If null, then
no Stipple fill should be used.public Graphic getGraphicStroke()
getGraphicStroke in interface Strokepublic void setGraphicStroke(Graphic strokeGraphic)
setGraphicStroke in interface StrokestrokeGraphic - The graphic to use as a linear graphic. If null,
then no graphic stroke should be used.public Expression getLineCap()
getLineCap in interface Strokepublic void setLineCap(Expression lineCap)
setLineCap in interface StrokelineCap - The cap style. This can be one of "butt", "round" and
"square" There is no defined default.public Expression getLineJoin()
getLineJoin in interface Strokepublic void setLineJoin(Expression lineJoin)
setLineJoin in interface StrokelineJoin - The join style. This will be one of "mitre", "round"
and "bevel". There is no defined default.public Expression getOpacity()
getOpacity in interface Strokepublic void setOpacity(Expression opacity)
setOpacity in interface Strokeopacity - The opacity of the stroke, where 0.0 is completely
transparent and 1.0 is completely opaque.public Expression getWidth()
getWidth in interface Strokepublic void setWidth(Expression width)
setWidth in interface Strokewidth - The width of the stroke in pixels. This may be fractional
but not negative.public java.lang.String toString()
public java.awt.Color getColor(Feature feature)
Stroke
getColor in interface Strokepublic void accept(StyleVisitor visitor)
accept in interface Strokepublic java.lang.Object clone()
The clone is a deep copy of the original, except for the expression values which are immutable.
clone in interface Strokeclone in class AbstractGTComponentStroke.clone()public int hashCode()
public boolean equals(java.lang.Object oth)
oth - The other StrokeImpl to compare
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||