@XmlElement(value="PointPlacement") public interface PointPlacement extends LabelPlacement
Modifier and Type | Method and Description |
---|---|
Object |
accept(StyleVisitor visitor,
Object extraData)
calls the visit method of a StyleVisitor
|
AnchorPoint |
getAnchorPoint()
The AnchorPoint element of a PointPlacement gives the location inside of a label to use for
anchoring the label to the main-geometry point.
|
Displacement |
getDisplacement()
The Displacement gives the X and Y displacements from the "hot-spot" point.
|
Expression |
getRotation()
Returns the expression that will be used to calculate the rotation of the graphic when it is
drawn.
|
@XmlElement(value="PointPlacement") AnchorPoint getAnchorPoint()
This will often be used to avoid over-plotting a graphic symbol marking a city or some such feature. The displacements are in units of pixels above and to the right of the point. A system may reflect this displacement about the X and/or Y axes to de-conflict labels. The default displacement is X=0, Y=0.
See AnchorPoint
for details.
@XmlElement(value="Displacement") Displacement getDisplacement()
If Displacement is used in conjunction with Size and/or Rotation then the graphic symbol shall be scaled and/or rotated before it is displaced.s
@XmlElement(value="Rotation") Expression getRotation()
The Rotation of a PointPlacement gives the clockwise rotation of the label in degrees from the normal direction for a font (left-to-right for Latin-derived human languages at least).
@Extension Object accept(StyleVisitor visitor, Object extraData)
accept
in interface LabelPlacement
visitor
- the style visitorCopyright © 1996–2019 Geotools. All rights reserved.