|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@XmlElement(value="Stroke") public interface Stroke
Contains all the information needed to draw styled lines. Stroke objects are contained
by LineSymbol
s and PolygonSymbol
s. There are three basic types of strokes:
solid-color, GraphicFill
(stipple), and repeated linear GraphicStroke
. A
repeated linear graphic is plotted linearly and has its graphic symbol bent around the curves
of the line string, and a graphic fill has the pixels of the line rendered with a repeating
area-fill pattern. If neither a GraphicFill
nor GraphicStroke
element is given, then the line symbolizer will render a solid color.
Method Summary | |
---|---|
Object |
accept(StyleVisitor visitor,
Object extraData)
calls the visit method of a StyleVisitor |
Expression |
getColor()
Indicates the color of the line if it is to be solid-color filled. |
float[] |
getDashArray()
If present, indicates the dash pattern as a space-separated sequence of floating point numbers. |
Expression |
getDashOffset()
Indicates the distance offset into the dash array to begin drawing. |
GraphicFill |
getGraphicFill()
If non-null, indicates that line should be drawn by tiling the (thin) area of the line with the given graphic. |
GraphicStroke |
getGraphicStroke()
If non-null, indicates that lines should be drawn by repeatedly plotting the given graphic along the path of the lines, rotating it according to the orientation of the line. |
Expression |
getLineCap()
Indicates how the beginning and ending segments of a line string will be terminated. |
Expression |
getLineJoin()
Indicates how the various segments of a (thick) line string should be joined. |
Expression |
getOpacity()
Indicates the level of translucency as a floating point number whose value is between 0.0 and 1.0 (inclusive). |
Expression |
getWidth()
Gives the absolute width in uoms of the line stroke as a floating point number. |
Method Detail |
---|
@XmlElement(value="GraphicFill") GraphicFill getGraphicFill()
getGraphicFill()
and getGraphicStroke()
, only one
may return a non-null value since a Stroke
can have a GraphicFill
or a
GraphicStroke
, but not both.
@XmlElement(value="GraphicStroke") GraphicStroke getGraphicStroke()
getGraphicFill()
and getGraphicStroke
, only one may return a
non-null value since a Stroke
can have a GraphicFill
or a GraphicStroke
,
but not both.
@XmlParameter(value="stroke") Expression getColor()
"#rrggbb"
where rr
, gg
, and bb
, are red, green,
and blue intensity values, respectively, represented as two digit hexadecimal integers.
The hexadecimal digits between A
and F
may be in either uppercase or lowercase.
If null, the default color is "#000000"
, black.
@XmlParameter(value="stroke-opacity") Expression getOpacity()
@XmlParameter(value="stroke-width") Expression getWidth()
@XmlParameter(value="stroke-linejoin") Expression getLineJoin()
@XmlParameter(value="stroke-linecap") Expression getLineCap()
@XmlParameter(value="stroke-dasharray") float[] getDashArray()
@XmlParameter(value="stroke-dashoffset") Expression getDashOffset()
@Extension Object accept(StyleVisitor visitor, Object extraData)
visitor
- the style visitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |