aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2007-03-22 10:13:25 +0000
committerVincent Hennebert <vhennebert@apache.org>2007-03-22 10:13:25 +0000
commit962cfdd2171ca49b9815c229c5d1ecf96ca9d92b (patch)
tree9ad9c90b7adfa3ef03225b9e180b2e3be6aa5485 /src/java/org/apache/fop/layoutmgr
parent5b4433debb61b7a91222fce7b07839a4bd7fa41b (diff)
downloadxmlgraphics-fop-962cfdd2171ca49b9815c229c5d1ecf96ca9d92b.tar.gz
xmlgraphics-fop-962cfdd2171ca49b9815c229c5d1ecf96ca9d92b.zip
Small improvements in the SpaceResolver class:
- constructor made private as it shouldn't be called by other classes - inner classes made static; they are candidate for later becoming top-level classes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@521185 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr')
-rw-r--r--src/java/org/apache/fop/layoutmgr/SpaceResolver.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/SpaceResolver.java b/src/java/org/apache/fop/layoutmgr/SpaceResolver.java
index 222f20040..0175835e1 100644
--- a/src/java/org/apache/fop/layoutmgr/SpaceResolver.java
+++ b/src/java/org/apache/fop/layoutmgr/SpaceResolver.java
@@ -57,7 +57,7 @@ public class SpaceResolver {
* @param isFirst Resolution at the beginning of a (full) element list
* @param isLast Resolution at the end of a (full) element list
*/
- public SpaceResolver(List first, BreakElement breakPoss, List second,
+ private SpaceResolver(List first, BreakElement breakPoss, List second,
boolean isFirst, boolean isLast) {
this.isFirst = isFirst;
this.isLast = isLast;
@@ -494,7 +494,7 @@ public class SpaceResolver {
* Position class for break possibilities. It is used to notify layout manager about the
* effective spaces and conditional lengths.
*/
- public class SpaceHandlingBreakPosition extends Position {
+ public static class SpaceHandlingBreakPosition extends Position {
private SpaceResolver resolver;
private Position originalPosition;
@@ -566,7 +566,7 @@ public class SpaceResolver {
* Position class for no-break situations. It is used to notify layout manager about the
* effective spaces and conditional lengths.
*/
- public class SpaceHandlingPosition extends Position {
+ public static class SpaceHandlingPosition extends Position {
private SpaceResolver resolver;