Package org.geotools.styling
Interface Displacement
-
- All Superinterfaces:
Displacement
- All Known Implementing Classes:
DisplacementImpl
public interface Displacement extends Displacement
A Displacement gives X and Y offset displacements to use for rendering a text label near a point.- Author:
- Ian Turton, CCG
-
-
Field Summary
Fields Modifier and Type Field Description static Displacement
DEFAULT
Default Displacement instance.static Displacement
NULL
Null Displacement instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(StyleVisitor visitor)
Expression
getDisplacementX()
Returns an expression that computes a pixel offset from the geometry point.void
setDisplacementX(Expression x)
Sets the expression that computes a pixel offset from the geometry point.void
setDisplacementY(Expression y)
Sets the expression that computes a pixel offset from the geometry point.-
Methods inherited from interface Displacement
accept, getDisplacementY
-
-
-
-
Field Detail
-
DEFAULT
static final Displacement DEFAULT
Default Displacement instance.
-
NULL
static final Displacement NULL
Null Displacement instance.
-
-
Method Detail
-
getDisplacementX
Expression getDisplacementX()
Returns an expression that computes a pixel offset from the geometry point. This offset point is where the text's anchor point gets located. If this expression is null, the default offset of zero is used.- Specified by:
getDisplacementX
in interfaceDisplacement
- Returns:
- Horizontal offeset
-
setDisplacementX
void setDisplacementX(Expression x)
Sets the expression that computes a pixel offset from the geometry point.
-
setDisplacementY
void setDisplacementY(Expression y)
Sets the expression that computes a pixel offset from the geometry point.
-
accept
void accept(StyleVisitor visitor)
-
-