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: * A system-independent object for holding SLD font information. This holds
23: * information on the text font to use in text processing. Font-family,
24: * font-style, font-weight and font-size.
25: *
26: * @author Ian Turton, CCG
27: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/styling/Font.java $
28: * @version $Id: Font.java 25459 2007-05-08 05:19:25Z jgarnett $
29: */
30: public interface Font extends GTComponent {
31: /** default font-size value **/
32: static final int DEFAULT_FONTSIZE = 10;
33:
34: Expression getFontFamily();
35:
36: void setFontFamily(Expression family);
37:
38: Expression getFontStyle();
39:
40: void setFontStyle(Expression style);
41:
42: Expression getFontWeight();
43:
44: void setFontWeight(Expression weight);
45:
46: Expression getFontSize();
47:
48: void setFontSize(Expression size);
49:
50: /**
51: * Enumeration of allow font-style values.
52: */
53: interface Style {
54: static final String NORMAL = "normal";
55: static final String ITALIC = "italic";
56: static final String OBLIQUE = "oblique";
57: }
58:
59: /**
60: * Enumeration of allow font-weight values.
61: */
62: interface Weight {
63: static final String NORMAL = "normal";
64: static final String BOLD = "bold";
65: }
66: }
|