|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Stroke
public void setColor(Expression color)
setColor
in interface Stroke
color
- 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 Stroke
public void setDashArray(float[] dashPattern)
-- --- -- ---
-- --- -- --- --
--- --
setDashArray
in interface Stroke
dashPattern
- The dash pattern as an array of float values in the
form "dashlength gaplength ..."public Expression getDashOffset()
getDashOffset
in interface Stroke
public void setDashOffset(Expression dashOffset)
setDashOffset
in interface Stroke
dashOffset
- The distance into the dash pattern that should act as
the start.public Graphic getGraphicFill()
getGraphicFill
in interface Stroke
public void setGraphicFill(Graphic fillGraphic)
setGraphicFill
in interface Stroke
fillGraphic
- The graphic to use as a stipple fill. If null, then
no Stipple fill should be used.public Graphic getGraphicStroke()
getGraphicStroke
in interface Stroke
public void setGraphicStroke(Graphic strokeGraphic)
setGraphicStroke
in interface Stroke
strokeGraphic
- The graphic to use as a linear graphic. If null,
then no graphic stroke should be used.public Expression getLineCap()
getLineCap
in interface Stroke
public void setLineCap(Expression lineCap)
setLineCap
in interface Stroke
lineCap
- The cap style. This can be one of "butt", "round" and
"square" There is no defined default.public Expression getLineJoin()
getLineJoin
in interface Stroke
public void setLineJoin(Expression lineJoin)
setLineJoin
in interface Stroke
lineJoin
- The join style. This will be one of "mitre", "round"
and "bevel". There is no defined default.public Expression getOpacity()
getOpacity
in interface Stroke
public void setOpacity(Expression opacity)
setOpacity
in interface Stroke
opacity
- The opacity of the stroke, where 0.0 is completely
transparent and 1.0 is completely opaque.public Expression getWidth()
getWidth
in interface Stroke
public void setWidth(Expression width)
setWidth
in interface Stroke
width
- 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 Stroke
public void accept(StyleVisitor visitor)
accept
in interface Stroke
public java.lang.Object clone()
The clone is a deep copy of the original, except for the expression values which are immutable.
clone
in interface Stroke
clone
in class AbstractGTComponent
Stroke.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 |