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 CommonMarginInline { 33 34 37 public Length marginTop; 38 39 42 public Length marginBottom; 43 44 47 public Length marginLeft; 48 49 52 public Length marginRight; 53 54 57 public SpaceProperty spaceStart; 58 59 62 public SpaceProperty spaceEnd; 63 64 68 public CommonMarginInline(PropertyList pList) throws PropertyException { 69 marginTop = pList.get(Constants.PR_MARGIN_TOP).getLength(); 70 marginBottom = pList.get(Constants.PR_MARGIN_BOTTOM).getLength(); 71 marginLeft = pList.get(Constants.PR_MARGIN_LEFT).getLength(); 72 marginRight = pList.get(Constants.PR_MARGIN_RIGHT).getLength(); 73 74 spaceStart = pList.get(Constants.PR_SPACE_START).getSpace(); 75 spaceEnd = pList.get(Constants.PR_SPACE_END).getSpace(); 76 } 77 } 78 | Popular Tags |