diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-03-08 15:03:06 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-03-08 15:03:06 +0000 |
commit | a392d777f6ab4c12ce5b6caaf179ad3f18032092 (patch) | |
tree | c93d01083f79134255896ee31542187786deb64b /src/java/org/apache/fop/layoutmgr/KnuthBox.java | |
parent | 3c010868dc685d17d958c71b7c116cef95769f81 (diff) | |
download | xmlgraphics-fop-a392d777f6ab4c12ce5b6caaf179ad3f18032092.tar.gz xmlgraphics-fop-a392d777f6ab4c12ce5b6caaf179ad3f18032092.zip |
Refactoring of Knuth line breaking code (including some speed improvements)
Bugzilla: #32612
Submitted by: Finn Bock <bckfnn.at.worldonline.dk>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198474 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 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/KnuthBox.java b/src/java/org/apache/fop/layoutmgr/KnuthBox.java index 76f56eb4e..8479f77d6 100644 --- a/src/java/org/apache/fop/layoutmgr/KnuthBox.java +++ b/src/java/org/apache/fop/layoutmgr/KnuthBox.java @@ -1,5 +1,5 @@ /* - * Copyright 2004 The Apache Software Foundation. + * Copyright 2004-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. @@ -47,12 +47,16 @@ public class KnuthBox extends KnuthElement { * @param bAux is this box auxiliary? */ public KnuthBox(int w, int l, int t, int m, Position pos, boolean bAux) { - super(KNUTH_BOX, w, pos, bAux); + super(w, pos, bAux); lead = l; total = t; middle = m; } + public boolean isBox() { + return true; + } + /** * Return the height of this box above the main baseline. */ |