org.geotools.styling.builder
Class StrokeBuilder<P>

Object
  extended by StrokeBuilder<P>
All Implemented Interfaces:
Builder<Stroke>

public class StrokeBuilder<P>
extends Object
implements Builder<Stroke>


Constructor Summary
StrokeBuilder()
           
StrokeBuilder(P parent)
           
 
Method Summary
 Stroke build()
          Created object, may be null if unset()
 ExpressionBuilder color()
           
 StrokeBuilder<P> color(Color color)
           
 StrokeBuilder<P> color(Expression color)
           
 StrokeBuilder<P> color(String color)
           
 float[] dashArray()
           
 StrokeBuilder<P> dashArray(float[] dashArray)
           
 StrokeBuilder<P> dashOffet(double offset)
           
 StrokeBuilder<P> dashOffet(Expression dashOffet)
           
 StrokeBuilder<P> dashOffet(int offset)
           
 ChildExpressionBuilder<StrokeBuilder<P>> dashOffset()
           
 GraphicBuilder<StrokeBuilder<P>> fillBuilder()
           
 GraphicBuilder<StrokeBuilder<P>> graphicStroke()
           
 ChildExpressionBuilder<StrokeBuilder<P>> lineCap()
           
 StrokeBuilder<P> lineCap(Expression lineCap)
           
 ChildExpressionBuilder<StrokeBuilder<P>> lineJoin()
           
 StrokeBuilder<P> lineJoin(Expression lineJoin)
           
 ExpressionBuilder opacity()
           
 StrokeBuilder<P> opacity(double opacity)
           
 StrokeBuilder<P> opacity(Expression opacity)
           
 StrokeBuilder<P> reset()
          Reset stroke to default values.
 StrokeBuilder<P> reset(Stroke stroke)
          Reset builder to provided original stroke.
 StrokeBuilder<P> unset()
          Configure the Builder to produce null.
 ChildExpressionBuilder<StrokeBuilder<P>> width()
           
 StrokeBuilder<P> width(double width)
           
 StrokeBuilder<P> width(Expression width)
           
 StrokeBuilder<P> width(int width)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrokeBuilder

public StrokeBuilder()

StrokeBuilder

public StrokeBuilder(P parent)
Method Detail

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.