diff options
author | Glen Mazza <gmazza@apache.org> | 2005-06-08 22:06:32 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2005-06-08 22:06:32 +0000 |
commit | 650436066caa8ad2632862f2d2995879e4fe8451 (patch) | |
tree | cd9817cab84d4e5d951edc7a7ec451cc158f0601 /src/java/org/apache/fop/layoutmgr/TextLayoutManager.java | |
parent | 098fb711a931f489f612e4b38be81251a2fad957 (diff) | |
download | xmlgraphics-fop-650436066caa8ad2632862f2d2995879e4fe8451.tar.gz xmlgraphics-fop-650436066caa8ad2632862f2d2995879e4fe8451.zip |
LayoutManager.canBreakBefore() removed.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198721 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/TextLayoutManager.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/TextLayoutManager.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java index 58c8786b6..2c64e4c4e 100644 --- a/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java @@ -219,24 +219,6 @@ public class TextLayoutManager extends LeafNodeLayoutManager { } /** - * Return value indicating whether the next area to be generated could - * start a new line. This should only be called in the "START" condition - * if a previous inline BP couldn't end the line. - * Return true if the first character is a potential linebreak character. - * - * @param context the layout context for determining a break - * @return true if can break before this text - */ - public boolean canBreakBefore(LayoutContext context) { - char c = textArray[iNextStart]; - return ((c == NEWLINE) || (foText.getWrapOption() == EN_WRAP - && (CharUtilities.isBreakableSpace(c) - || (BREAK_CHARS.indexOf(c) >= 0 - && (iNextStart == 0 - || Character.isLetterOrDigit(textArray[iNextStart-1])))))); - } - - /** * Reset position for returning next BreakPossibility. * * @param prevPos the position to reset to |