aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-25 10:43:00 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-25 10:43:00 +0000
commit885db48aa4c07ce26f526752904fd9fd736b278b (patch)
tree408858568154353c507c56b2464516e4fa2f7a62 /src/java/org/apache
parentdcc549d859e139ca37d3807c0e653c9336329c08 (diff)
downloadxmlgraphics-fop-885db48aa4c07ce26f526752904fd9fd736b278b.tar.gz
xmlgraphics-fop-885db48aa4c07ce26f526752904fd9fd736b278b.zip
Additional text-decoration traits
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198313 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/area/Trait.java20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/area/Trait.java b/src/java/org/apache/fop/area/Trait.java
index 09923e701..326502e7b 100644
--- a/src/java/org/apache/fop/area/Trait.java
+++ b/src/java/org/apache/fop/area/Trait.java
@@ -182,6 +182,15 @@ public class Trait implements Serializable {
/** The is-viewport-area trait. */
public static final Integer IS_VIEWPORT_AREA = new Integer(32);
+ /** Blinking trait used when rendering inline parent. */
+ public static final Integer BLINK = new Integer(33);
+
+ /** Trait for color of underline decorations when rendering inline parent. */
+ public static final Integer UNDERLINE_COLOR = new Integer(34);
+ /** Trait for color of overline decorations when rendering inline parent. */
+ public static final Integer OVERLINE_COLOR = new Integer(35);
+ /** Trait for color of linethrough decorations when rendering inline parent. */
+ public static final Integer LINETHROUGH_COLOR = new Integer(36);
private static final Map TRAIT_INFO = new HashMap();
@@ -219,11 +228,16 @@ public class Trait implements Serializable {
TRAIT_INFO.put(BACKGROUND,
new TraitInfo("background", Background.class));
TRAIT_INFO.put(UNDERLINE,
- new TraitInfo("underline", Boolean.class));
+ new TraitInfo("underline-score", Boolean.class));
+ TRAIT_INFO.put(UNDERLINE_COLOR, new TraitInfo("underline-score-color", String.class));
TRAIT_INFO.put(OVERLINE,
- new TraitInfo("overline", Boolean.class));
+ new TraitInfo("overline-score", Boolean.class));
+ TRAIT_INFO.put(OVERLINE_COLOR, new TraitInfo("overline-score-color", String.class));
TRAIT_INFO.put(LINETHROUGH,
- new TraitInfo("linethrough", Boolean.class));
+ new TraitInfo("through-score", Boolean.class));
+ TRAIT_INFO.put(LINETHROUGH_COLOR, new TraitInfo("through-score-color", String.class));
+ TRAIT_INFO.put(BLINK,
+ new TraitInfo("blink", Boolean.class));
TRAIT_INFO.put(OFFSET, new TraitInfo("offset", Integer.class));
TRAIT_INFO.put(SHADOW, new TraitInfo("shadow", Integer.class));
TRAIT_INFO.put(BORDER_START,