Browse Source

statics to the top so they are easily found.

Different logger name used now.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198762 13f79535-47bb-0310-9956-ffa450edef68
pull/41/head
Jeremias Maerki 19 years ago
parent
commit
7ea0a66550
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java

+ 6
- 4
src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java View File

@@ -39,6 +39,12 @@ import org.apache.fop.traits.MinOptMax;
* </pre>
*/
public abstract class BreakingAlgorithm {

/** the logger */
protected static Log log = LogFactory.getLog(BreakingAlgorithm.class);
protected static final int INFINITE_RATIO = 1000;

// parameters of Knuth's algorithm:
// penalty value for flagged penalties
private int flaggedPenalty = 50;
@@ -111,10 +117,6 @@ public abstract class BreakingAlgorithm {
protected BestRecords best;
private KnuthNode[] positions;

protected static final int INFINITE_RATIO = 1000;

protected static Log log = LogFactory.getLog(KnuthParagraph.class);

public BreakingAlgorithm(int align, int alignLast,
boolean first) {
alignment = align;

Loading…
Cancel
Save