]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FIXED wasn't defined.
authorJeremias Maerki <jeremias@apache.org>
Wed, 12 Jan 2005 11:49:03 +0000 (11:49 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 12 Jan 2005 11:49:03 +0000 (11:49 +0000)
Convenience method for accessing the start-indent trait.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198254 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/Block.java

index b4f770a992f13959de2572bc4be1aef7ac1ba1fe..881c2704b6b0f72465ef32eaded07f70b6f998a8 100644 (file)
@@ -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.
@@ -49,6 +49,12 @@ public class Block extends BlockParent {
      */
     public static final int ABSOLUTE = 2;
 
+    /**
+     * Relative to a viewport/page but not effecting the stacking
+     * Used for block-container.
+     */
+    public static final int FIXED = 3;
+
     private int stacking = TB;
     private int positioning = STACK;
 
@@ -111,5 +117,13 @@ public class Block extends BlockParent {
         return positioning;
     }
 
+    /**
+     * @return the start-indent trait
+     */
+    public int getStartIndent() {
+        Integer startIndent = (Integer)getTrait(Trait.START_INDENT);
+        return (startIndent != null ? startIndent.intValue() : 0);
+    }
+    
 }