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

java.lang.Object
  extended by org.geotools.styling.builder.FillBuilder<P>
All Implemented Interfaces:
Builder<org.opengis.style.Fill>

public class FillBuilder<P>
extends java.lang.Object
implements Builder<org.opengis.style.Fill>


Constructor Summary
FillBuilder()
          Create a FillBuilder on its own; not part of a larger data structure.
FillBuilder(P parent)
           
 
Method Summary
 Fill build()
          Build Fill as defined; FillBuilder will be reset after this use.
 ChildExpressionBuilder<FillBuilder<P>> color()
           
 FillBuilder<P> color(java.lang.Object color)
           
 P end()
           
 GraphicBuilder graphicFill()
           
 ChildExpressionBuilder<FillBuilder<P>> opacity()
           
 FillBuilder<P> opacity(java.lang.Object opacity)
           
 FillBuilder<P> reset()
          Reset to produce the default Fill.
 FillBuilder<P> reset(org.opengis.style.Fill original)
          Configure the Builder to produce a copy of the provided original.
 FillBuilder<P> unset()
          Configure the Builder to produce null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillBuilder

public FillBuilder()
Create a FillBuilder on its own; not part of a larger data structure.


FillBuilder

public FillBuilder(P parent)
Method Detail

color

public FillBuilder<P> color(java.lang.Object color)

opacity

public FillBuilder<P> opacity(java.lang.Object opacity)

opacity

public ChildExpressionBuilder<FillBuilder<P>> opacity()

graphicFill

public GraphicBuilder graphicFill()

color

public ChildExpressionBuilder<FillBuilder<P>> color()

build

public Fill build()
Build Fill as defined; FillBuilder will be reset after this use.

Specified by:
build in interface Builder<org.opengis.style.Fill>
Returns:
Created Fill as defined

end

public P end()

unset

public FillBuilder<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<org.opengis.style.Fill>
Returns:
Builder configured to build null

reset

public FillBuilder<P> reset()
Reset to produce the default Fill.

Specified by:
reset in interface Builder<org.opengis.style.Fill>
Returns:
Builder configured to produce a default result.

reset

public FillBuilder<P> reset(org.opengis.style.Fill original)
Description copied from interface: Builder
Configure the Builder to produce a copy of the provided original.

Specified by:
reset in interface Builder<org.opengis.style.Fill>
Returns:
Builder configured to produce the provided original


Copyright © 1996-2010 Geotools. All Rights Reserved.