aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-20 17:49:16 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-20 17:49:16 +0000
commit9f5840c5349082d020d55b9f46eb449a5edbb701 (patch)
tree69feb0c3108bb3068a5c013a77586faa205df602 /src/java/org
parent0bf2909645bfacd1221992b61e80b31002d13d29 (diff)
downloadxmlgraphics-fop-9f5840c5349082d020d55b9f46eb449a5edbb701.tar.gz
xmlgraphics-fop-9f5840c5349082d020d55b9f46eb449a5edbb701.zip
Fourth phase of performance improvement.
- fix temporary renamed property getter method. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198091 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/fo/flow/Leader.java11
-rw-r--r--src/java/org/apache/fop/fo/flow/TableRow.java3
-rw-r--r--src/java/org/apache/fop/layoutmgr/LeaderLayoutManager.java14
3 files changed, 9 insertions, 19 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Leader.java b/src/java/org/apache/fop/fo/flow/Leader.java
index c6cdf15b6..2650937cf 100644
--- a/src/java/org/apache/fop/fo/flow/Leader.java
+++ b/src/java/org/apache/fop/fo/flow/Leader.java
@@ -155,18 +155,10 @@ public class Leader extends FObjMixed {
return length;
}
- public int getRuleThickness() {
- return ruleThickness.getValue();
- }
-
public Font getFontState() {
return commonFont.getFontState(getFOEventHandler().getFontInfo());
}
- public int getPatternWidth() {
- return leaderPatternWidth.getValue();
- }
-
/**
* Return the Common Font Properties.
*/
@@ -190,9 +182,8 @@ public class Leader extends FObjMixed {
/**
* Return the "rule-thickness" property.
- * TODO: 31699
*/
- public Length ___getRuleThickness() {
+ public Length getRuleThickness() {
return ruleThickness;
}
diff --git a/src/java/org/apache/fop/fo/flow/TableRow.java b/src/java/org/apache/fop/fo/flow/TableRow.java
index 439f18887..5da858d95 100644
--- a/src/java/org/apache/fop/fo/flow/TableRow.java
+++ b/src/java/org/apache/fop/fo/flow/TableRow.java
@@ -151,9 +151,8 @@ public class TableRow extends FObj {
/**
* Return the "keep-with-previous" property.
- * TODO: 31699
*/
- public KeepProperty ___getKeepWithPrevious() {
+ public KeepProperty getKeepWithPrevious() {
return keepWithPrevious;
}
diff --git a/src/java/org/apache/fop/layoutmgr/LeaderLayoutManager.java b/src/java/org/apache/fop/layoutmgr/LeaderLayoutManager.java
index eedbd568c..554c8877a 100644
--- a/src/java/org/apache/fop/layoutmgr/LeaderLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/LeaderLayoutManager.java
@@ -75,7 +75,7 @@ public class LeaderLayoutManager extends LeafNodeLayoutManager {
org.apache.fop.area.inline.Leader leader =
new org.apache.fop.area.inline.Leader();
leader.setRuleStyle(fobj.getRuleStyle());
- leader.setRuleThickness(fobj.getRuleThickness());
+ leader.setRuleThickness(fobj.getRuleThickness().getValue());
leaderArea = leader;
} else if (fobj.getLeaderPattern() == LeaderPattern.SPACE) {
leaderArea = new Space();
@@ -90,10 +90,10 @@ public class LeaderLayoutManager extends LeafNodeLayoutManager {
t.setOffset(font.getAscender());
int width = font.getCharWidth(dot);
Space spacer = null;
- if (fobj.getPatternWidth() > width) {
+ if (fobj.getLeaderPatternWidth().getValue() > width) {
spacer = new Space();
- spacer.setIPD(fobj.getPatternWidth() - width);
- width = fobj.getPatternWidth();
+ spacer.setIPD(fobj.getLeaderPatternWidth().getValue() - width);
+ width = fobj.getLeaderPatternWidth().getValue();
}
FilledArea fa = new FilledArea();
fa.setUnitWidth(width);
@@ -127,10 +127,10 @@ public class LeaderLayoutManager extends LeafNodeLayoutManager {
clm.fillArea(lm);
int width = clm.getStackingSize();
Space spacer = null;
- if (fobj.getPatternWidth() > width) {
+ if (fobj.getLeaderPatternWidth().getValue() > width) {
spacer = new Space();
- spacer.setIPD(fobj.getPatternWidth() - width);
- width = fobj.getPatternWidth();
+ spacer.setIPD(fobj.getLeaderPatternWidth().getValue() - width);
+ width = fobj.getLeaderPatternWidth().getValue();
}
fa.setUnitWidth(width);
if (spacer != null) {