001: /**
002: * ===========================================
003: * JFreeReport : a free Java reporting library
004: * ===========================================
005: *
006: * Project Info: http://reporting.pentaho.org/
007: *
008: * (C) Copyright 2001-2007, by Object Refinery Ltd, Pentaho Corporation and Contributors.
009: *
010: * This library is free software; you can redistribute it and/or modify it under the terms
011: * of the GNU Lesser General Public License as published by the Free Software Foundation;
012: * either version 2.1 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
015: * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
016: * See the GNU Lesser General Public License for more details.
017: *
018: * You should have received a copy of the GNU Lesser General Public License along with this
019: * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
020: * Boston, MA 02111-1307, USA.
021: *
022: * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
023: * in the United States and other countries.]
024: *
025: * ------------
026: * TextStyleKeys.java
027: * ------------
028: * (C) Copyright 2001-2007, by Object Refinery Ltd, Pentaho Corporation and Contributors.
029: */package org.jfree.report.style;
030:
031: /**
032: * Creation-Date: 03.04.2007, 16:46:39
033: *
034: * @author Thomas Morgner
035: */
036: public class TextStyleKeys {
037: private TextStyleKeys() {
038: }
039:
040: /**
041: * 'preserve', 'discard', 'preserve-breaks' or 'none'
042: */
043: public static final StyleKey WHITE_SPACE_COLLAPSE = StyleKey
044: .getStyleKey("whitespace-collapse",
045: WhitespaceCollapse.class, false, true);
046: /**
047: * 'none' or 'wrap'
048: */
049: public static final StyleKey TEXT_WRAP = StyleKey.getStyleKey(
050: "text-wrap", TextWrap.class, false, true);
051:
052: public static final StyleKey X_MIN_LETTER_SPACING = StyleKey
053: .getStyleKey("min-letter-spacing", Float.class, false, true);
054: public static final StyleKey X_OPTIMUM_LETTER_SPACING = StyleKey
055: .getStyleKey("optimum-letter-spacing", Float.class, false,
056: true);
057: public static final StyleKey X_MAX_LETTER_SPACING = StyleKey
058: .getStyleKey("max-letter-spacing", Float.class, false, true);
059: public static final StyleKey WORD_SPACING = StyleKey.getStyleKey(
060: "word-spacing", Float.class, false, true);
061:
062: public static final StyleKey FONT_SMOOTH = StyleKey.getStyleKey(
063: "font-smooth", FontSmooth.class, false, true);
064: public static final StyleKey VERTICAL_TEXT_ALIGNMENT = StyleKey
065: .getStyleKey("vertical-text-alignment",
066: VerticalTextAlign.class);
067:
068: /**
069: * A key for the 'font family' used to draw element text.
070: */
071: public static final StyleKey FONT = StyleKey.getStyleKey("font",
072: String.class);
073:
074: /**
075: * A key for the 'font size' used to draw element text.
076: */
077: public static final StyleKey FONTSIZE = StyleKey.getStyleKey(
078: "font-size", Integer.class);
079:
080: /**
081: * A key for the 'font size' used to draw element text.
082: */
083: public static final StyleKey LINEHEIGHT = StyleKey.getStyleKey(
084: "line-height", Float.class);
085:
086: /**
087: * A key for an element's 'bold' flag.
088: */
089: public static final StyleKey BOLD = StyleKey.getStyleKey(
090: "font-bold", Boolean.class);
091:
092: /**
093: * A key for an element's 'italic' flag.
094: */
095: public static final StyleKey ITALIC = StyleKey.getStyleKey(
096: "font-italic", Boolean.class);
097:
098: /**
099: * A key for an element's 'underlined' flag.
100: */
101: public static final StyleKey UNDERLINED = StyleKey.getStyleKey(
102: "font-underline", Boolean.class);
103:
104: /**
105: * A key for an element's 'strikethrough' flag.
106: */
107: public static final StyleKey STRIKETHROUGH = StyleKey.getStyleKey(
108: "font-strikethrough", Boolean.class);
109:
110: /**
111: * A key for an element's 'embedd' flag.
112: */
113: public static final StyleKey EMBEDDED_FONT = StyleKey.getStyleKey(
114: "font-embedded", Boolean.class);
115:
116: /**
117: * A key for an element's 'embedd' flag.
118: */
119: public static final StyleKey FONTENCODING = StyleKey.getStyleKey(
120: "font-encoding", String.class);
121:
122: /**
123: * The string that is used to end a text if not all text fits into the element.
124: */
125: public static final StyleKey RESERVED_LITERAL = StyleKey
126: .getStyleKey("reserved-literal", String.class);
127:
128: /**
129: * The Layout Cacheable stylekey. Set this stylekey to false, to define that the element
130: * is not cachable. This key defaults to true.
131: */
132: public static final StyleKey TRIM_TEXT_CONTENT = StyleKey
133: .getStyleKey("trim-text-content", Boolean.class);
134:
135: }
|