|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Stroke allows a string of line segments (or any linear geometry) to be rendered. There are three basic types of strokes: solid Color, GraphicFill (stipple), and repeated GraphicStroke. A repeated graphic is plotted linearly and has its graphic symbol bended around the curves of the line string. The default is a solid black line (Color "#000000").
The supported CSS-Parameter names are:
Field Summary | |
static java.awt.Color |
COLOR_DEFAULT
|
static int |
LC_BUTT
|
static int |
LC_DEFAULT
|
static int |
LC_ROUND
|
static int |
LC_SQUARE
|
static int |
LJ_BEVEL
|
static int |
LJ_DEFAULT
|
static int |
LJ_MITRE
|
static int |
LJ_ROUND
|
static double |
OPACITY_DEFAULT
|
static double |
WIDTH_DEFAULT
|
Method Summary | |
float[] |
getDashArray(Feature feature)
The stroke-dasharray CssParameter element encodes a dash pattern as a series of space separated floats. |
float |
getDashOffset(Feature feature)
The stroke-dashoffset CssParameter element specifies the distance as a float into the stroke-dasharray pattern at which to start drawing. |
GraphicStroke |
getGraphicStroke()
The GraphicStroke element both indicates that a repeated-linear-graphic stroke type will be used. |
int |
getLineCap(Feature feature)
Thestroke-linecap CssParameter element encode enumerated values telling how line strings should be capped (at the two ends of the line string). |
int |
getLineJoin(Feature feature)
The stroke-linejoin CssParameter element encode enumerated values telling how line strings should be joined (between line segments). |
double |
getOpacity(Feature feature)
The stroke-opacity CssParameter element specifies the level of translucency to use when rendering the stroke. |
java.awt.Color |
getStroke(Feature feature)
The stroke CssParameter element gives the solid color that will be used for a stroke. |
double |
getWidth(Feature feature)
The stroke-width CssParameter element gives the absolute width (thickness) of a stroke in pixels encoded as a float. |
void |
setDashArray(float[] dashArray)
|
void |
setDashOffset(float dashOffset)
The stroke-dashoffset CssParameter element specifies the distance as a float into the stroke-dasharray pattern at which to start drawing. |
void |
setGraphicStroke(GraphicStroke graphicStroke)
Sets a GraphicStroke. |
void |
setLineCap(int lineCap)
|
void |
setLineJoin(int lineJoin)
|
void |
setOpacity(double opacity)
|
void |
setStroke(java.awt.Color stroke)
|
void |
setWidth(double width)
|
Methods inherited from interface org.deegree.graphics.sld.Drawing |
addCssParameter, getCssParameters, getGraphicFill, removeCssParameter, setCssParameters, setGraphicFill |
Field Detail |
public static final int LJ_MITRE
public static final int LJ_ROUND
public static final int LJ_BEVEL
public static final int LC_BUTT
public static final int LC_ROUND
public static final int LC_SQUARE
public static final java.awt.Color COLOR_DEFAULT
public static final double OPACITY_DEFAULT
public static final double WIDTH_DEFAULT
public static final int LJ_DEFAULT
public static final int LC_DEFAULT
Method Detail |
public GraphicStroke getGraphicStroke()
public void setGraphicStroke(GraphicStroke graphicStroke)
graphicStroke
- the graphicStroke elementpublic java.awt.Color getStroke(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setStroke(java.awt.Color stroke)
public double getOpacity(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setOpacity(double opacity)
public double getWidth(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setWidth(double width)
public int getLineJoin(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setLineJoin(int lineJoin)
public int getLineCap(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setLineCap(int lineCap)
public float[] getDashArray(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setDashArray(float[] dashArray)
public float getDashOffset(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation
of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation failspublic void setDashOffset(float dashOffset)
dashOffset
- the dashOffset to be set for the Stroke
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |