diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-07-26 10:01:41 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-07-26 10:01:41 +0000 |
commit | 4cebac3e2785d691b8df6437577cf7a0b5e59707 (patch) | |
tree | dea01ae14b465a4e8cb0461c55542beeda232dc0 /src/java/org/apache/fop/area/Trait.java | |
parent | fce67cde95574b4fe4d263c5fe5dba3df92ae7bf (diff) | |
download | xmlgraphics-fop-4cebac3e2785d691b8df6437577cf7a0b5e59707.tar.gz xmlgraphics-fop-4cebac3e2785d691b8df6437577cf7a0b5e59707.zip |
Send the ID of the producing FO to the area tree as trait where possible.
This is useful for testing and may later be interesting for FO editor implementors and for other things where you want to identify the generating FO from a particular object in the output.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225268 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/Trait.java')
-rw-r--r-- | src/java/org/apache/fop/area/Trait.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/area/Trait.java b/src/java/org/apache/fop/area/Trait.java index 326502e7b..fa44ebe4d 100644 --- a/src/java/org/apache/fop/area/Trait.java +++ b/src/java/org/apache/fop/area/Trait.java @@ -66,9 +66,9 @@ public class Trait implements Serializable { public static final Integer COLOR = new Integer(7); /** - * Don't think this is necessary. + * The ID of the FO that produced an area. */ - public static final Integer ID_AREA = new Integer(8); + public static final Integer PROD_ID = new Integer(8); /** * Background trait for an area. @@ -224,7 +224,7 @@ public class Trait implements Serializable { TRAIT_INFO.put(FONT_SIZE, new TraitInfo("font-size", Integer.class)); TRAIT_INFO.put(COLOR, new TraitInfo("color", String.class)); - TRAIT_INFO.put(ID_AREA, new TraitInfo("id-area", String.class)); + TRAIT_INFO.put(PROD_ID, new TraitInfo("prod-id", String.class)); TRAIT_INFO.put(BACKGROUND, new TraitInfo("background", Background.class)); TRAIT_INFO.put(UNDERLINE, |