Package org.geotools.api.style
Interface Displacement
- All Known Implementing Classes:
DisplacementImpl
public interface Displacement
The Displacement gives the X and Y displacements from the original geometry. This element may be used to avoid
over-plotting of multiple PolygonSymbolizers for one geometry or supplying "shadows" of polygon gemeotries. The
displacements are in units of pixels above and to the right of the point. The default displacement is X=0, Y=0.
- Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, Johann Sorel (Geomatys), Ian Turton, CCG
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(StyleVisitor visitor) accept
(TraversingStyleVisitor visitor, Object extraData) calls the visit method of a StyleVisitorReturns an expression that computes a pixel offset from the geometry point.Returns an expression that computes a pixel offset from the geometry point.void
Sets the expression that computes a pixel offset from the geometry point.void
Sets the expression that computes a pixel offset from the geometry point.
-
Method Details
-
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.- Returns:
- Horizontal offeset
-
getDisplacementY
Expression getDisplacementY()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.- Returns:
- Expression
-
accept
calls the visit method of a StyleVisitor- Parameters:
visitor
- the style visitor
-
setDisplacementX
Sets the expression that computes a pixel offset from the geometry point. -
setDisplacementY
Sets the expression that computes a pixel offset from the geometry point. -
accept
-