public interface PointPlacement extends PointPlacement, LabelPlacement
The details of this object are taken from the OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.:
<xsd:element name="PointPlacement">
<xsd:annotation>
<xsd:documentation>
A "PointPlacement" specifies how a text label should be rendered
relative to a geometric point.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="sld:AnchorPoint" minOccurs="0"/>
<xsd:element ref="sld:Displacement" minOccurs="0"/>
<xsd:element ref="sld:Rotation" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
$Id$
Modifier and Type | Field and Description |
---|---|
static AnchorPoint |
DEFAULT_ANCHOR_POINT |
Modifier and Type | Method and Description |
---|---|
AnchorPoint |
getAnchorPoint()
Returns the AnchorPoint which identifies the location inside a textlabel to use as an
"anchor" for positioning it relative to a point geometry.
|
Displacement |
getDisplacement()
Returns the Displacement which gives X and Y offset displacements to use for rendering a text
label near a point.
|
Expression |
getRotation()
Returns the rotation of the label.
|
void |
setAnchorPoint(AnchorPoint anchorPoint)
sets the AnchorPoint which identifies the location inside a textlabel to use as an "anchor"
for positioning it relative to a point geometry.
|
void |
setDisplacement(Displacement displacement)
sets the Displacement which gives X and Y offset displacements to use for rendering a text
label near a point.
|
void |
setRotation(Expression rotation)
sets the rotation of the label.
|
accept
accept
static final AnchorPoint DEFAULT_ANCHOR_POINT
AnchorPoint getAnchorPoint()
getAnchorPoint
in interface PointPlacement
void setAnchorPoint(AnchorPoint anchorPoint)
anchorPoint
- relative to the origional geometryDisplacement getDisplacement()
getDisplacement
in interface PointPlacement
void setDisplacement(Displacement displacement)
Expression getRotation()
getRotation
in interface PointPlacement
void setRotation(Expression rotation)
Sets the rotation of the label.
rotation
- Copyright © 1996–2019 Geotools. All rights reserved.