Class AnchorPointBuilder
Object
AnchorPointBuilder
- All Implemented Interfaces:
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();
</pre- Author:
- Jody Garnett (LISAsoft)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final FilterFactoryprotected AbstractSLDBuilder<?>protected StyleFactoryprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionAnchorPointBuilder(AbstractStyleBuilder<?> parent, double defaultX, double defaultY) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Created object, may be null if unset()buildSLD()protected voidprotected voidprotected ExpressioncqlExpression(String cql) protected Filterprotected voidinit(Builder<AnchorPoint> other) protected Expressionprotected Expressionreset()Configure the Builder to produce a default result.reset(AnchorPoint anchorPoint) Configure the Builder to produce a copy of the provided original.unset()Configure the Builder to producenull.x(double x) x(Expression x) y(double y) y(Expression y)
-
Field Details
-
sf
-
parent
protected AbstractSLDBuilder<?> parent -
FF
-
unset
protected boolean unset
-
-
Constructor Details
-
AnchorPointBuilder
public AnchorPointBuilder() -
AnchorPointBuilder
public AnchorPointBuilder(AbstractStyleBuilder<?> parent, double defaultX, double defaultY)
-
-
Method Details
-
build
Description copied from interface:BuilderCreated object, may be null if unset()- Returns:
- Created object may be null if unset()
-
x
-
x
-
x
-
y
-
y
-
y
-
reset
Description copied from interface:BuilderConfigure the Builder to produce a default result.- Returns:
- Builder configured to produce a default result.
-
unset
Description copied from interface:BuilderConfigure the Builder to producenull.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:
unsetin interfaceBuilder<AnchorPoint>- Returns:
- Builder configured to build
null
-
reset
Description copied from interface:BuilderConfigure the Builder to produce a copy of the provided original.- Parameters:
anchorPoint- Original, if null this will behave the same as unset()- Returns:
- Builder configured to produce the provided original
-
buildStyleInternal
-
literal
-
property
-
cqlExpression
-
cqlFilter
-
buildSLDInternal
-
buildStyle
-
buildRoot
-
init
-
buildSLD
-