Browse Source

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
tags/Root_Temp_KnuthStylePageBreaking
Finn Bock 19 years ago
parent
commit
9f5840c534

+ 1
- 10
src/java/org/apache/fop/fo/flow/Leader.java View File

@@ -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;
}


+ 1
- 2
src/java/org/apache/fop/fo/flow/TableRow.java View File

@@ -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;
}


+ 7
- 7
src/java/org/apache/fop/layoutmgr/LeaderLayoutManager.java View File

@@ -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) {

Loading…
Cancel
Save