public class SLDStroke extends Object
Modifier and Type | Field and Description |
---|---|
protected SLDExpression |
color |
protected List<Float> |
dashArray |
protected SLDExpression |
dashOffset |
static DecimalFormat |
df |
protected SLDGraphic |
graphic
Used when not STROKE_TYPE_SOLID
Means a graphicFill or graphicStroke depending on the type
of stroke
|
protected Double |
graphicStrokeGap
Used for STROKE_TYPE_GRAPHIC_STROKE
|
protected Double |
graphicStrokeInitialGap
Used for STROKE_TYPE_GRAPHIC_STROKE
|
protected SLDExpression |
lineCap |
protected SLDExpression |
lineJoin |
protected SLDExpression |
opacity |
static int |
STROKE_TYPE_GRAPHIC_FILL |
static int |
STROKE_TYPE_GRAPHIC_STROKE |
static int |
STROKE_TYPE_SOLID |
protected int |
strokeType |
protected SLDExpression |
width |
Constructor and Description |
---|
SLDStroke() |
Modifier and Type | Method and Description |
---|---|
SLDExpression |
getColor() |
List<Float> |
getDashArray() |
SLDExpression |
getDashOffset() |
SLDGraphic |
getGraphic() |
Double |
getGraphicStrokeGap() |
Double |
getGraphicStrokeInitialGap() |
SLDExpression |
getLineCap() |
SLDExpression |
getLineJoin() |
SLDExpression |
getOpacity() |
int |
getStrokeType() |
SLDExpression |
getWidth() |
void |
setColor(Color c) |
void |
setColor(SLDExpression c) |
void |
setDashOffset(SLDExpression doff) |
void |
setGraphic(SLDGraphic g) |
void |
setGraphicStrokeGap(Double g) |
void |
setGraphicStrokeInitialGap(Double g) |
void |
setLineCap(SLDExpression c) |
void |
setLineJoin(SLDExpression j) |
void |
setOpacity(double opa) |
void |
setOpacity(SLDExpression o) |
void |
setStrokeType(int t) |
void |
setWidth(double w) |
void |
setWidth(SLDExpression w) |
static String |
toHexadecimal(Color co,
int length,
String prefix)
Examples:
#ff0000
0x000000cd9983
Returns null is color is null
|
public static final int STROKE_TYPE_SOLID
public static final int STROKE_TYPE_GRAPHIC_FILL
public static final int STROKE_TYPE_GRAPHIC_STROKE
protected int strokeType
public static DecimalFormat df
protected SLDExpression width
protected SLDExpression color
protected SLDExpression opacity
protected SLDExpression lineJoin
protected SLDExpression lineCap
protected SLDExpression dashOffset
protected Double graphicStrokeInitialGap
protected Double graphicStrokeGap
protected SLDGraphic graphic
public void setStrokeType(int t)
public int getStrokeType()
public SLDExpression getWidth()
public void setWidth(SLDExpression w)
public void setWidth(double w)
public SLDExpression getColor()
public void setColor(SLDExpression c)
public void setColor(Color c)
public SLDExpression getOpacity()
public void setOpacity(SLDExpression o)
public void setOpacity(double opa)
public SLDExpression getLineJoin()
public void setLineJoin(SLDExpression j)
public SLDExpression getLineCap()
public void setLineCap(SLDExpression c)
public SLDExpression getDashOffset()
public void setDashOffset(SLDExpression doff)
public Double getGraphicStrokeInitialGap()
public void setGraphicStrokeInitialGap(Double g)
public Double getGraphicStrokeGap()
public void setGraphicStrokeGap(Double g)
public SLDGraphic getGraphic()
public void setGraphic(SLDGraphic g)