1 51 package org.apache.fop.datatypes; 52 53 import org.apache.fop.fo.Property; 54 55 60 public class LengthPair implements CompoundDatatype { 61 62 private Property ipd; 63 private Property bpd; 64 65 public void setComponent(String sCmpnName, Property cmpnValue, 67 boolean bIsDefault) { 68 if (sCmpnName.equals("block-progression-direction")) 69 bpd = cmpnValue; 70 else if (sCmpnName.equals("inline-progression-direction")) 71 ipd = cmpnValue; 72 } 73 74 public Property getComponent(String sCmpnName) { 76 if (sCmpnName.equals("block-progression-direction")) 77 return getBPD(); 78 else if (sCmpnName.equals("inline-progression-direction")) 79 return getIPD(); 80 else 81 return null; } 83 84 public Property getIPD() { 85 return this.ipd; 86 } 87 88 public Property getBPD() { 89 return this.bpd; 90 } 91 92 } 93 | Popular Tags |