From 7d138fe6b45908b0b6e3a6a2146e803d038e700f Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 12 Jan 2005 11:49:03 +0000 Subject: 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 --- src/java/org/apache/fop/area/Block.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/java/org') 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); + } + } -- cgit v1.2.3