org.geotools.styling.builder
Class StrokeBuilder<P>
Object
StrokeBuilder<P>
- All Implemented Interfaces:
- Builder<Stroke>
public class StrokeBuilder<P>
- extends Object
- implements Builder<Stroke>
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrokeBuilder
public StrokeBuilder()
StrokeBuilder
public StrokeBuilder(P parent)
unset
public StrokeBuilder<P> unset()
- Description copied from interface:
Builder
- Configure the Builder to produce
null
.
This method allows a Builder to be used as a placeholder; in its
unset state the build() method will produce null
. If
any of the builder methods are used the builder will produce a
result.
- Specified by:
unset
in interface Builder<Stroke>
- Returns:
- Builder configured to build
null
reset
public StrokeBuilder<P> reset()
- Reset stroke to default values.
- Specified by:
reset
in interface Builder<Stroke>
- Returns:
- Builder configured to produce a default result.
reset
public StrokeBuilder<P> reset(Stroke stroke)
- Reset builder to provided original stroke.
- Specified by:
reset
in interface Builder<Stroke>
- Parameters:
stroke
-
- Returns:
- Builder configured to produce the provided original
color
public StrokeBuilder<P> color(Expression color)
color
public StrokeBuilder<P> color(Color color)
color
public StrokeBuilder<P> color(String color)
color
public ExpressionBuilder color()
width
public StrokeBuilder<P> width(Expression width)
width
public StrokeBuilder<P> width(int width)
width
public StrokeBuilder<P> width(double width)
width
public ChildExpressionBuilder<StrokeBuilder<P>> width()
opacity
public StrokeBuilder<P> opacity(Expression opacity)
opacity
public StrokeBuilder<P> opacity(double opacity)
opacity
public ExpressionBuilder opacity()
lineCap
public StrokeBuilder<P> lineCap(Expression lineCap)
lineCap
public ChildExpressionBuilder<StrokeBuilder<P>> lineCap()
lineJoin
public StrokeBuilder<P> lineJoin(Expression lineJoin)
lineJoin
public ChildExpressionBuilder<StrokeBuilder<P>> lineJoin()
dashArray
public StrokeBuilder<P> dashArray(float[] dashArray)
dashArray
public float[] dashArray()
dashOffet
public StrokeBuilder<P> dashOffet(Expression dashOffet)
dashOffet
public StrokeBuilder<P> dashOffet(int offset)
dashOffet
public StrokeBuilder<P> dashOffet(double offset)
dashOffset
public ChildExpressionBuilder<StrokeBuilder<P>> dashOffset()
graphicStroke
public GraphicBuilder<StrokeBuilder<P>> graphicStroke()
fillBuilder
public GraphicBuilder<StrokeBuilder<P>> fillBuilder()
build
public Stroke build()
- Description copied from interface:
Builder
- Created object, may be null if unset()
- Specified by:
build
in interface Builder<Stroke>
- Returns:
- Created object may be null if unset()
Copyright © 1996-2010 Geotools. All Rights Reserved.