1 17 18 19 20 package org.apache.fop.layoutmgr; 21 22 30 public abstract class KnuthElement extends ListElement { 31 32 33 public static final int INFINITE = 1000; 34 35 private int width; 36 private boolean bIsAuxiliary; 37 38 46 protected KnuthElement(int w, Position pos, boolean bAux) { 47 super(pos); 48 width = w; 49 bIsAuxiliary = bAux; 50 } 51 52 53 public boolean isAuxiliary() { 54 return bIsAuxiliary; 55 } 56 57 58 public int getW() { 59 return width; 60 } 61 62 63 public int getP() { 64 throw new RuntimeException ("Element is not a penalty"); 65 } 66 67 68 public int getY() { 69 throw new RuntimeException ("Element is not a glue"); 70 } 71 72 73 public int getZ() { 74 throw new RuntimeException ("Element is not a glue"); 75 } 76 77 78 public boolean isUnresolvedElement() { 79 return false; 80 } 81 82 } 83 | Popular Tags |