01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.styling;
17:
18: import org.geotools.event.GTComponent;
19:
20: /**
21: * The "LabelPlacement" specifies where and how a text label should be rendered
22: * relative to a geometry.
23: *
24: * <p>
25: * The details of this object are taken from the <a
26: * href="https://portal.opengeospatial.org/files/?artifact_id=1188"> OGC
27: * Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.</a>:
28: * <pre><code>
29: * <xsd:element name="LabelPlacement">
30: * <xsd:annotation>
31: * <xsd:documentation>
32: * The "LabelPlacement" specifies where and how a text label should
33: * be rendered relative to a geometry. The present mechanism is
34: * poorly aligned with CSS/SVG.
35: * </xsd:documentation>
36: * </xsd:annotation>
37: * <xsd:complexType>
38: * <xsd:choice>
39: * <xsd:element ref="sld:PointPlacement"/>
40: * <xsd:element ref="sld:LinePlacement"/>
41: * </xsd:choice>
42: * </xsd:complexType>
43: * </xsd:element>
44: * </code></pre>
45: * </p>
46: *
47: * <p></p>
48: *
49: * @author Ian Turton, CCG
50: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/styling/LabelPlacement.java $
51: */
52: public interface LabelPlacement extends GTComponent {
53: //TODO: check GeoAPI renaming of LabelPlacement to TextPlacement
54: //TODO: check GeoAPI use of accept(StyleVisitor, Object) instead of accept(StyleVisitor)
55: void accept(StyleVisitor visitor);
56: }
|