aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-20 13:41:06 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-20 13:41:06 +0000
commitcb8938a7ad5dbccbff0e79f37af3782568740823 (patch)
treedeb6988916f3ecf85afa962e55c55d752c9bcc30 /src/java/org/apache
parent4d783deec3336b825c2344fae48eb0ad18f15ea6 (diff)
downloadxmlgraphics-fop-cb8938a7ad5dbccbff0e79f37af3782568740823.tar.gz
xmlgraphics-fop-cb8938a7ad5dbccbff0e79f37af3782568740823.zip
Fourth phase of performance improvement.
- Use correct AbstractLayoutManager constructor. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198089 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java1
-rw-r--r--src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java3
-rw-r--r--src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java6
-rw-r--r--src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java5
-rw-r--r--src/java/org/apache/fop/layoutmgr/TextLayoutManager.java3
5 files changed, 7 insertions, 11 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java
index 05a9d9fb8..39d9a2e9a 100644
--- a/src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java
@@ -35,6 +35,7 @@ public class BidiLayoutManager extends LeafNodeLayoutManager {
private List children;
public BidiLayoutManager(BidiOverride node, InlineStackingLayoutManager cLM) {
+ super(node);
children = new ArrayList();
setFObj(node);
/*
diff --git a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
index da40ad209..4c64bddbf 100644
--- a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
@@ -36,9 +36,6 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager {
protected LayoutManager curChildLM = null;
protected BlockParent parentArea = null;
- public BlockStackingLayoutManager() {
- }
-
public BlockStackingLayoutManager(FObj node) {
super(node);
}
diff --git a/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java b/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
index 561ff085b..42da5776f 100644
--- a/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
@@ -77,12 +77,6 @@ public class LeafNodeLayoutManager extends AbstractLayoutManager {
}
/**
- * Create a Leaf node layout mananger.
- */
- public LeafNodeLayoutManager() {
- }
-
- /**
* get the inline area.
* @param context the context used to create the area
* @return the current inline area for this layout manager
diff --git a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
index bb706fbea..352c72d23 100644
--- a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
@@ -21,6 +21,7 @@ package org.apache.fop.layoutmgr;
import org.apache.fop.area.RegionReference;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
+import org.apache.fop.fo.pagination.Flow;
import java.util.ArrayList;
import java.util.List;
@@ -37,6 +38,10 @@ public class StaticContentLayoutManager extends BlockStackingLayoutManager {
private RegionReference region;
private List blockBreaks = new ArrayList();
+ public StaticContentLayoutManager(Flow node) {
+ super(node);
+ }
+
/**
* Sets the region reference
* @param region region reference
diff --git a/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java
index 42ccb865a..b6cb0c353 100644
--- a/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java
@@ -123,9 +123,8 @@ public class TextLayoutManager extends AbstractLayoutManager {
* @param node The FOText object to be rendered
*/
public TextLayoutManager(FOText node) {
- super();
-
foText = node;
+
textArray = new char[node.endIndex - node.startIndex];
System.arraycopy(node.ca, node.startIndex, textArray, 0,
node.endIndex - node.startIndex);