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.opengis.filter.expression.Expression;
19: import org.geotools.event.GTComponent;
20:
21: /**
22: * An AnchorPoint identifies the location inside a textlabel to use as an
23: * "anchor" for positioning it relative to a point geometry.
24: *
25: * @author Ian Turton
26: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/styling/AnchorPoint.java $
27: * @version $Id: AnchorPoint.java 25459 2007-05-08 05:19:25Z jgarnett $
28: */
29: public interface AnchorPoint extends GTComponent {
30: //TODO: add AnchorPoint to GeoAPI
31: /**
32: * get the x coordinate of the anchor point
33: *
34: * @return the expression which represents the X coordinate
35: */
36: Expression getAnchorPointX();
37:
38: /**
39: * set the X coordinate for the anchor point
40: *
41: * @param x an expression which represents the X coordinate
42: */
43: void setAnchorPointX(Expression x);
44:
45: /**
46: * get the y coordinate of the anchor point
47: *
48: * @return the expression which represents the Y coordinate
49: */
50: Expression getAnchorPointY();
51:
52: /**
53: * set the Y coordinate for the anchor point
54: *
55: * @param y an expression which represents the Y coordinate
56: */
57: void setAnchorPointY(Expression y);
58:
59: /**
60: * calls the visit method of a StyleVisitor
61: *
62: * @param visitor the style visitor
63: */
64: void accept(StyleVisitor visitor);
65: }
|