1 17 18 19 20 package org.apache.fop.fo.properties; 21 22 import org.apache.fop.datatypes.Length; 23 import org.apache.fop.fo.Constants; 24 import org.apache.fop.fo.PropertyList; 25 import org.apache.fop.fo.expr.PropertyException; 26 27 32 public class CommonAbsolutePosition { 33 36 public int absolutePosition; 37 38 41 public Length top; 42 43 46 public Length right; 47 48 51 public Length bottom; 52 53 56 public Length left; 57 58 62 public CommonAbsolutePosition(PropertyList pList) throws PropertyException { 63 absolutePosition = pList.get(Constants.PR_ABSOLUTE_POSITION).getEnum(); 64 top = pList.get(Constants.PR_TOP).getLength(); 65 bottom = pList.get(Constants.PR_BOTTOM).getLength(); 66 left = pList.get(Constants.PR_LEFT).getLength(); 67 right = pList.get(Constants.PR_RIGHT).getLength(); 68 } 69 70 public String toString() { 71 StringBuffer sb = new StringBuffer ("CommonAbsolutePosition{"); 72 sb.append(" absPos="); 73 sb.append(absolutePosition); 74 sb.append(" top="); 75 sb.append(top); 76 sb.append(" bottom="); 77 sb.append(bottom); 78 sb.append(" left="); 79 sb.append(left); 80 sb.append(" right="); 81 sb.append(right); 82 sb.append("}"); 83 return sb.toString(); 84 } 85 } 86 | Popular Tags |