cvs commit: xml-fop/src/java/org/apache/fop/area Trait.java
jeremias2005/01/25 02:43:00 Modified:src/java/org/apache/fop/area Trait.java Log: Additional text-decoration traits Revision ChangesPath 1.9 +17 -3 xml-fop/src/java/org/apache/fop/area/Trait.java Index: Trait.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Trait.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- Trait.java24 Jan 2005 10:43:19 - 1.8 +++ Trait.java25 Jan 2005 10:43:00 - 1.9 @@ -182,6 +182,15 @@ /** 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 @@ 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, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/java/org/apache/fop/area Trait.java
jeremias2005/01/17 02:30:16 Modified:src/java/org/apache/fop/area Trait.java Log: New traits: space-before, space-after, is-viewport-area, is-reference-area Revision ChangesPath 1.7 +20 -1 xml-fop/src/java/org/apache/fop/area/Trait.java Index: Trait.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Trait.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Trait.java12 Jan 2005 11:47:45 - 1.6 +++ Trait.java17 Jan 2005 10:30:16 - 1.7 @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -169,6 +169,17 @@ */ public static final Integer END_INDENT = new Integer(28); +/** The space-before trait. */ +public static final Integer SPACE_BEFORE = new Integer(29); + +/** The space-after trait. */ +public static final Integer SPACE_AFTER = new Integer(30); + +/** The is-reference-area trait. */ +public static final Integer IS_REFERENCE_AREA = new Integer(31); + +/** The is-viewport-area trait. */ +public static final Integer IS_VIEWPORT_AREA = new Integer(32); private static final Map TRAIT_INFO = new HashMap(); @@ -242,6 +253,14 @@ new TraitInfo("start-indent", Integer.class)); TRAIT_INFO.put(END_INDENT, new TraitInfo("end-indent", Integer.class)); +TRAIT_INFO.put(SPACE_BEFORE, +new TraitInfo("space-before", Integer.class)); +TRAIT_INFO.put(SPACE_AFTER, +new TraitInfo("space-after", Integer.class)); +TRAIT_INFO.put(IS_REFERENCE_AREA, +new TraitInfo("is-reference-area", Boolean.class)); +TRAIT_INFO.put(IS_VIEWPORT_AREA, +new TraitInfo("is-viewport-area", Boolean.class)); } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/java/org/apache/fop/area Trait.java
jeremias2005/01/12 03:47:45 Modified:src/java/org/apache/fop/area Trait.java Log: Defined the start|end-indent traits. Revision ChangesPath 1.6 +16 -2 xml-fop/src/java/org/apache/fop/area/Trait.java Index: Trait.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Trait.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Trait.java27 May 2004 10:52:33 - 1.5 +++ Trait.java12 Jan 2005 11:47:45 - 1.6 @@ -159,6 +159,18 @@ */ public static final Integer BREAK_AFTER = new Integer(26); +/** + * The start-indent trait. + */ +public static final Integer START_INDENT = new Integer(27); + +/** + * The end-indent trait. + */ +public static final Integer END_INDENT = new Integer(28); + + + private static final Map TRAIT_INFO = new HashMap(); private static class TraitInfo { @@ -226,8 +238,10 @@ new TraitInfo("break-before", Integer.class)); TRAIT_INFO.put(BREAK_AFTER, new TraitInfo("break-after", Integer.class)); - - +TRAIT_INFO.put(START_INDENT, +new TraitInfo("start-indent", Integer.class)); +TRAIT_INFO.put(END_INDENT, +new TraitInfo("end-indent", Integer.class)); } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]