aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/traits
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2002-05-26 15:02:44 +0000
committerKaren Lease <klease@apache.org>2002-05-26 15:02:44 +0000
commitcf792550e99092e4137e54393d355263b7e34e5e (patch)
tree30fe8efe2ca295184c85aa6d89202bcacfc2d8f1 /src/org/apache/fop/traits
parent17c3c8e200822fb2856be9358e61bf50539c7cec (diff)
downloadxmlgraphics-fop-cf792550e99092e4137e54393d355263b7e34e5e.tar.gz
xmlgraphics-fop-cf792550e99092e4137e54393d355263b7e34e5e.zip
PR:
Obtained from: Submitted by: Reviewed by: Separate Position from BreakPoss and create Leaf and NonLeafPosition classes. Move management of Trait to top level Area class and use HAshMap instead of List. Generalize handling of Trait in XMLRenderer and AreaTreeBuilder. Improve handling of word-space and inter-area inline spaces in BP-style layout managers. Set border and padding traits on InlineParent areas. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/traits')
-rw-r--r--src/org/apache/fop/traits/BorderProps.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/org/apache/fop/traits/BorderProps.java b/src/org/apache/fop/traits/BorderProps.java
new file mode 100644
index 000000000..99303eee2
--- /dev/null
+++ b/src/org/apache/fop/traits/BorderProps.java
@@ -0,0 +1,34 @@
+/*
+ * $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
+ */
+
+package org.apache.fop.traits;
+
+import org.apache.fop.datatypes.ColorType;
+
+public class BorderProps {
+ public int style; // Enum for border style
+ public ColorType color; // Border color
+ public int width; // Border width
+
+ public BorderProps(int style, int width, ColorType color) {
+ this.style = style;
+ this.width = width;
+ this.color = color;
+ }
+
+ public String toString() {
+ StringBuffer sbuf = new StringBuffer();
+ sbuf.append('(');
+ sbuf.append(style); // Should get a String value for this enum constant
+ sbuf.append(',');
+ sbuf.append(color);
+ sbuf.append(',');
+ sbuf.append(width);
+ sbuf.append(')');
+ return sbuf.toString();
+ }
+}