1 17 18 19 20 package org.apache.fop.layoutmgr; 21 22 import org.apache.fop.traits.MinOptMax; 23 24 import java.util.LinkedList ; 25 26 29 public class KnuthBlockBox extends KnuthBox { 30 31 private MinOptMax ipdRange; 32 36 private int bpd; 37 private LinkedList footnoteList; 38 39 private LinkedList elementLists = null; 40 41 49 public KnuthBlockBox(int w, MinOptMax range, int bpdim, Position pos, boolean bAux) { 50 super(w, pos, bAux); 51 ipdRange = (MinOptMax) range.clone(); 52 bpd = bpdim; 53 footnoteList = new LinkedList (); 54 } 55 56 64 public KnuthBlockBox(int w, LinkedList list, Position pos, boolean bAux) { 65 super(w, pos, bAux); 66 ipdRange = new MinOptMax(0); 67 bpd = 0; 68 footnoteList = new LinkedList (list); 69 } 70 71 74 public LinkedList getFootnoteBodyLMs() { 75 return footnoteList; 76 } 77 78 81 public boolean hasAnchors() { 82 return (footnoteList.size() > 0); 83 } 84 85 89 public void addElementList(LinkedList list) { 90 if (elementLists == null) { 91 elementLists = new LinkedList (); 92 } 93 elementLists.add(list); 94 } 95 96 101 public LinkedList getElementLists() { 102 return elementLists; 103 } 104 105 108 public MinOptMax getIPDRange() { 109 return (MinOptMax) ipdRange.clone(); 110 } 111 112 117 public int getBPD() { 118 return bpd; 119 } 120 } 121 | Popular Tags |