diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-05-13 19:16:54 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-05-13 19:16:54 +0000 |
commit | e835307c9373bed3a8f41bb43e4faee15fdaf548 (patch) | |
tree | 04b42bcff456d9216e96b4cfcb572c59baba76e1 /src/java/org/apache/fop/layoutmgr/KnuthBox.java | |
parent | da85c0b44d79ca790b51fcc0e2700c30e72e9260 (diff) | |
download | xmlgraphics-fop-e835307c9373bed3a8f41bb43e4faee15fdaf548.tar.gz xmlgraphics-fop-e835307c9373bed3a8f41bb43e4faee15fdaf548.zip |
Merge of branch Temp_KnuthStylePageBreaking back into HEAD.
Temp_KnuthStylePageBreaking branch and HEAD have been tagged prior to the merge, so merging uncommitted work from the branch should be easier.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/KnuthBox.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/KnuthBox.java | 42 |
1 files changed, 13 insertions, 29 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/KnuthBox.java b/src/java/org/apache/fop/layoutmgr/KnuthBox.java index 8479f77d6..77f463068 100644 --- a/src/java/org/apache/fop/layoutmgr/KnuthBox.java +++ b/src/java/org/apache/fop/layoutmgr/KnuthBox.java @@ -32,49 +32,33 @@ package org.apache.fop.layoutmgr; * positioning, and the methods used to get them. */ public class KnuthBox extends KnuthElement { - private int lead; - private int total; - private int middle; /** * Create a new KnuthBox. * * @param w the width of this box - * @param l the height of this box above the main baseline - * @param t the total height of this box - * @param m the height of this box above and below the middle baseline * @param pos the Position stored in this box * @param bAux is this box auxiliary? */ - public KnuthBox(int w, int l, int t, int m, Position pos, boolean bAux) { + public KnuthBox(int w, Position pos, boolean bAux) { super(w, pos, bAux); - lead = l; - total = t; - middle = m; } + /** @see org.apache.fop.layoutmgr.KnuthElement#isBox() */ public boolean isBox() { return true; } - /** - * Return the height of this box above the main baseline. - */ - public int getLead() { - return lead; - } - - /** - * Return the total height of this box. - */ - public int getTotal() { - return total; - } - - /** - * Return the height of this box above and below the middle baseline. - */ - public int getMiddle() { - return middle; + /** @see java.lang.Object#toString() */ + public String toString() { + StringBuffer sb = new StringBuffer(64); + if (isAuxiliary()) { + sb.append("aux. "); + } + sb.append("box"); + sb.append(" w="); + sb.append(getW()); + return sb.toString(); } + } |