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 CommonRelativePosition { 33 36 public int relativePosition; 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 CommonRelativePosition(PropertyList pList) throws PropertyException { 63 relativePosition = pList.get(Constants.PR_RELATIVE_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 } 71 | Popular Tags |