/* * GeoTools - The Open Source Java GIS Toolkit * http://geotools.org * * (C) 2002-2008, Open Source Geospatial Foundation (OSGeo) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotools.styling; import org.opengis.filter.expression.Expression; /** * An AnchorPoint identifies the location inside a textlabel to use as an * "anchor" for positioning it relative to a point geometry. * * @author Ian Turton * @source $URL$ * @version $Id$ */ public interface AnchorPoint { //TODO: add AnchorPoint to GeoAPI /** * get the x coordinate of the anchor point * * @return the expression which represents the X coordinate */ Expression getAnchorPointX(); /** * set the X coordinate for the anchor point * * @param x an expression which represents the X coordinate * * @deprecated symbolizers and underneath classes will be immutable in 2.6.x . */ @Deprecated void setAnchorPointX(Expression x); /** * get the y coordinate of the anchor point * * @return the expression which represents the Y coordinate */ Expression getAnchorPointY(); /** * set the Y coordinate for the anchor point * * @param y an expression which represents the Y coordinate * * @deprecated symbolizers and underneath classes will be immutable in 2.6.x . */ @Deprecated void setAnchorPointY(Expression y); /** * calls the visit method of a StyleVisitor * * @param visitor the style visitor */ void accept(StyleVisitor visitor); }