01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, Geotools Project Managment Committee (PMC)
05: * (C) 2004, Institut de Recherche pour le Développement
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: */
17: package org.geotools.resources;
18:
19: // Geotools dependencies
20: import org.geotools.referencing.wkt.Formatter;
21:
22: /**
23: * Interface for object that can be formatted as
24: * <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html"><cite>Well
25: * Known Text</cite> (WKT), but can't extends {@link org.geotools.referencing.wkt.Formattable}.
26: * This interface is especially used for <ocde>AffineTransform2D</code> implementation. This
27: * interface is not public because the {@code formatWKT(Formatter)} method usually has a
28: * protected access.
29: *
30: * @since 2.0
31: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/referencing/src/main/java/org/geotools/resources/Formattable.java $
32: * @version $Id: Formattable.java 20874 2006-08-07 10:00:01Z jgarnett $
33: * @author Martin Desruisseaux
34: */
35: public interface Formattable {
36: /**
37: * Format the inner part of a
38: * <A HREF="http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/referencing/doc-files/WKT.html"><cite>Well
39: * Known Text</cite> (WKT)</A> element.
40: *
41: * @param formatter The formatter to use.
42: * @return The WKT element name (e.g. "GEOGCS").
43: *
44: * @see org.geotools.referencing.wkt.Formattable#formatWKT(Formatter)
45: */
46: String formatWKT(Formatter formatter);
47: }
|