Modifier | Constructor and Description |
---|---|
protected |
StrokeImpl()
Creates a new instance of Stroke
|
protected |
StrokeImpl(FilterFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
accept(StyleVisitor visitor) |
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor
|
Object |
clone()
Clone the StrokeImpl object.
|
List<Expression> |
dashArray()
This parameter encodes the dash pattern as a list of expressions.
|
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()
Shortcut to retrieve dash array in the case where all expressions are literal numbers.
|
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[] literalDashArray)
Shortcut to define dash array using literal numbers.
|
void |
setDashArray(List<Expression> dashArray)
This parameter encodes the dash pattern as a list of expressions.
|
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() |
protected StrokeImpl()
protected StrokeImpl(FilterFactory factory)
public void setFilterFactory(FilterFactory factory)
public Expression getColor()
public void setColor(Expression color)
color
- The color of the stroke encoded as a hexidecimal RGB value. This must not be
null.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[] literalDashArray)
public List<Expression> dashArray()
For example, "2 1 3 2" would produce:
-- --- -- --- -- ---
-- --- -- --- --
public void setDashArray(List<Expression> dashArray)
For example, "2 1 3 2" would produce:
-- --- -- --- -- ---
-- --- -- --- --
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()
public void setWidth(Expression width)
width
- The width of the stroke in pixels. This may be fractional but not negative.public Color getColor(SimpleFeature feature)
public Object accept(StyleVisitor visitor, Object data)
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.
Copyright © 1996–2022 Geotools. All rights reserved.