1 17 18 19 20 package org.apache.fop.layoutmgr; 21 22 28 public abstract class ListElement { 29 30 private Position position; 31 32 36 public ListElement(Position position) { 37 this.position = position; 38 } 39 40 43 public Position getPosition() { 44 return this.position; 45 } 46 47 51 public void setPosition(Position position) { 52 this.position = position; 53 } 54 55 58 public LayoutManager getLayoutManager() { 59 if (position != null) { 60 return position.getLM(); 61 } else { 62 return null; 63 } 64 } 65 66 67 public boolean isBox() { 68 return false; 69 } 70 71 72 public boolean isGlue() { 73 return false; 74 } 75 76 77 public boolean isPenalty() { 78 return false; 79 } 80 81 82 public boolean isForcedBreak() { 83 return false; 84 } 85 86 87 public boolean isUnresolvedElement() { 88 return true; 89 } 90 91 } 92 | Popular Tags |