|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStrokeImpl
public class StrokeImpl
Provides a Java representation of the Stroke object in an SLD document. A stroke defines how a line is rendered.
modules/library/main (gt-main.jar)
Field Summary |
---|
Fields inherited from interface Stroke |
---|
DEFAULT, NULL |
Constructor Summary | |
---|---|
protected |
StrokeImpl()
Creates a new instance of Stroke |
protected |
StrokeImpl(FilterFactory factory)
|
Method Summary | |
---|---|
void |
accept(StyleVisitor visitor)
|
Object |
accept(StyleVisitor visitor,
Object data)
|
Object |
clone()
Clone the StrokeImpl object. |
boolean |
equals(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. |
Color |
getColor(SimpleFeature feature)
|
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. |
GraphicImpl |
getGraphicFill()
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use. |
GraphicImpl |
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(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. |
String |
toString()
|
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
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)
color
- The color of the stroke encoded as a hexidecimal RGB value.
This must not be null.
IllegalArgumentException
- DOCUMENT ME!public void setColor(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)
-- --- -- ---
-- --- -- --- --
--- --
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)
dashOffset
- The distance into the dash pattern that should act as
the start.public GraphicImpl getGraphicFill()
getGraphicFill
in interface Stroke
public void setGraphicFill(Graphic fillGraphic)
fillGraphic
- The graphic to use as a stipple fill. If null, then
no Stipple fill should be used.public GraphicImpl getGraphicStroke()
getGraphicStroke
in interface Stroke
public void setGraphicStroke(Graphic strokeGraphic)
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)
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)
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)
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)
width
- The width of the stroke in pixels. This may be fractional
but not negative.public String toString()
toString
in class Object
public Color getColor(SimpleFeature feature)
public Object accept(StyleVisitor visitor, Object data)
accept
in interface Stroke
public void accept(StyleVisitor visitor)
public Object clone()
The clone is a deep copy of the original, except for the expression values which are immutable.
clone
in class Object
org.geotools.styling.Stroke#clone()
public int hashCode()
hashCode
in class Object
public boolean equals(Object oth)
equals
in class Object
oth
- The other StrokeImpl to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |