diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-01-12 11:49:03 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-01-12 11:49:03 +0000 |
commit | 7d138fe6b45908b0b6e3a6a2146e803d038e700f (patch) | |
tree | a0709f4021bd6c92843a737c8cf93e3977a05633 /src/java/org | |
parent | d3724090f129f004419a30cd20fee5ec861384cb (diff) | |
download | xmlgraphics-fop-7d138fe6b45908b0b6e3a6a2146e803d038e700f.tar.gz xmlgraphics-fop-7d138fe6b45908b0b6e3a6a2146e803d038e700f.zip |
FIXED wasn't defined.
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
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/area/Block.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/Block.java b/src/java/org/apache/fop/area/Block.java index b4f770a99..881c2704b 100644 --- a/src/java/org/apache/fop/area/Block.java +++ b/src/java/org/apache/fop/area/Block.java @@ -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); + } + } |