01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-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; either
09: * version 2.1 of the License, or (at your option) any later version.
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: * Created on April 6, 2004, 11:06 AM
17: */
18:
19: package org.geotools.renderer.lite;
20:
21: import java.awt.image.BufferedImage;
22: import java.util.List;
23:
24: import org.geotools.feature.Feature;
25: import org.geotools.styling.ExternalGraphic;
26: import org.geotools.styling.Graphic;
27:
28: /**
29: *
30: * @author jamesm
31: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/render/src/main/java/org/geotools/renderer/lite/GlyphRenderer.java $
32: */
33: public interface GlyphRenderer {
34:
35: public boolean canRender(String format);
36:
37: public List getFormats();
38:
39: /**
40: *
41: * @param graphic
42: * @param eg
43: * @param feature
44: * @param height use <=0 if you dont want any scaling done. THIS MIGHT BE IGNORED by the renderer!
45: */
46: public BufferedImage render(Graphic graphic, ExternalGraphic eg,
47: Object feature, int height);
48:
49: }
|