1 17 18 19 20 package org.apache.fop.fo.properties; 21 22 import org.apache.fop.fo.Constants; 23 import org.apache.fop.fo.PropertyList; 24 import org.apache.fop.fo.expr.PropertyException; 25 26 30 public class BorderWidthPropertyMaker extends LengthProperty.Maker { 31 int borderStyleId = 0; 32 33 38 public BorderWidthPropertyMaker(int propId) { 39 super(propId); 40 } 41 42 46 public void setBorderStyleId(int borderStyleId) { 47 this.borderStyleId = borderStyleId; 48 } 49 50 55 56 public Property get(int subpropId, PropertyList propertyList, 57 boolean bTryInherit, boolean bTryDefault) 58 throws PropertyException 59 { 60 Property p = super.get(subpropId, propertyList, 61 bTryInherit, bTryDefault); 62 63 Property style = propertyList.get(borderStyleId); 65 if (style.getEnum() == Constants.EN_NONE) { 66 return new FixedLength(0); 67 } 68 return p; 69 } 70 } 71 | Popular Tags |