|
||||||||||
| 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 LineSymbols and PolygonSymbols. 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 | |
|---|---|
Expression |
getColor()
Indicates the color of the line if it is to be solid-color filled. |
Expression |
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. |
Graphic |
getGraphicFill()
If non-null, indicates that line should be drawn by tiling the (thin) area of the line with the given graphic. |
Graphic |
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 pixels of the line stroke as a floating point number. |
void |
setColor(Expression expression)
Sets the color of the line if it is to be solid-color filled. |
void |
setDashArray(Expression expression)
Set the dash pattern as a space-separated sequence of floating point numbers. |
void |
setDashOffset(Expression expression)
Sets the distance offset into the dash array to begin drawing. |
void |
setGraphicFill(Graphic graphicFill)
Sets the line that should be drawn by tiling the (thin) area of the line with the given graphic. |
void |
setGraphicStroke(Graphic graphicStroke)
Sets the lines that should be drawn by repeatedly plotting the given graphic along the path of the lines, rotating it according to the orientation of the line. |
void |
setLineCap(Expression expression)
Sets how the beginning and ending segments of a line string will be terminated. |
void |
setLineJoin(Expression expression)
Sets how the various segments of a (thick) line string should be joined. |
void |
setOpacity(Expression expression)
Sets the level of translucency as a floating point number whose value is between 0.0 and 1.0 (inclusive). |
void |
setWidth(Expression expression)
Sets the absolute width in pixels of the line stroke as a floating point number. |
| Method Detail |
|---|
@XmlElement(value="GraphicFill") Graphic 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="GraphicFill") void setGraphicFill(Graphic graphicFill)
getGraphicFill() for details.
@XmlElement(value="GraphicStroke") Graphic 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.
@XmlElement(value="GraphicStroke") void setGraphicStroke(Graphic graphicStroke)
getGraphicStroke() for details.
@XmlElement(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.
@XmlElement(value="stroke") void setColor(Expression expression)
getColor() for details.
@XmlElement(value="stroke-opacity") Expression getOpacity()
@XmlElement(value="stroke-opacity") void setOpacity(Expression expression)
getOpacity() for details.
@XmlElement(value="stroke-width") Expression getWidth()
@XmlElement(value="stroke-width") void setWidth(Expression expression)
getWidth() for details.
@XmlElement(value="stroke-linejoin") Expression getLineJoin()
@XmlElement(value="stroke-linejoin") void setLineJoin(Expression expression)
getLineJoin() for details.
@XmlElement(value="stroke-linecap") Expression getLineCap()
@XmlElement(value="stroke-linecap") void setLineCap(Expression expression)
getLineCap() for details.
@XmlElement(value="stroke-dasharray") Expression getDashArray()
@XmlElement(value="stroke-dasharray") void setDashArray(Expression expression)
getDashArray() for details.
@XmlElement(value="stroke-dashoffset") Expression getDashOffset()
@XmlElement(value="stroke-dashoffset") void setDashOffset(Expression expression)
getDashOffset() for details.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||