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

java.lang.Object
  extended by org.geotools.styling.builder.AnchorPointBuilder<P>
All Implemented Interfaces:
Builder<AnchorPoint>

public class AnchorPointBuilder<P>
extends java.lang.Object
implements Builder<AnchorPoint>

AnchorPoint allows you specify which part of a graphic indicates the location.

As an example if your graphic is a pin the AnchorPoint will be the end of the pin.

AnchorPointBuilder b = new AnchorPointBuilder();
 AnchorPoint anchor = b.x(0.5).y(0.9).build();
 

Author:
Jody Garnett (LISAsoft)

Constructor Summary
AnchorPointBuilder()
           
AnchorPointBuilder(P parent)
           
 
Method Summary
 AnchorPoint build()
          Created object, may be null if unset()
 P end()
           
 AnchorPointBuilder<P> reset()
          Configure the Builder to produce a default result.
 AnchorPointBuilder<P> reset(AnchorPoint anchorPoint)
          Configure the Builder to produce a copy of the provided original.
 AnchorPointBuilder<P> reset(org.opengis.style.AnchorPoint anchorPoint)
           
 AnchorPointBuilder<P> unset()
          Configure the Builder to produce null.
 ChildExpressionBuilder<AnchorPointBuilder<P>> x()
           
 AnchorPointBuilder<P> x(double x)
           
 ChildExpressionBuilder<AnchorPointBuilder<P>> y()
           
 AnchorPointBuilder<P> y(double y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorPointBuilder

public AnchorPointBuilder()

AnchorPointBuilder

public AnchorPointBuilder(P parent)
Method Detail

build

public AnchorPoint build()
Description copied from interface: Builder
Created object, may be null if unset()

Specified by:
build in interface Builder<AnchorPoint>
Returns:
Created object may be null if unset()

end

public P end()

x

public ChildExpressionBuilder<AnchorPointBuilder<P>> x()

x

public AnchorPointBuilder<P> x(double x)

y

public ChildExpressionBuilder<AnchorPointBuilder<P>> y()

y

public AnchorPointBuilder<P> y(double y)

reset

public AnchorPointBuilder<P> reset()
Description copied from interface: Builder
Configure the Builder to produce a default result.

Specified by:
reset in interface Builder<AnchorPoint>
Returns:
Builder configured to produce a default result.

reset

public AnchorPointBuilder<P> reset(AnchorPoint anchorPoint)
Description copied from interface: Builder
Configure the Builder to produce a copy of the provided original.

Specified by:
reset in interface Builder<AnchorPoint>
Returns:
Builder configured to produce the provided original

unset

public AnchorPointBuilder<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<AnchorPoint>
Returns:
Builder configured to build null

reset

public AnchorPointBuilder<P> reset(org.opengis.style.AnchorPoint anchorPoint)


Copyright © 1996-2010 Geotools. All Rights Reserved.