1 17 18 19 20 package org.apache.fop.fo.flow; 21 22 import java.awt.Color ; 23 24 import org.apache.fop.apps.FOPException; 25 import org.apache.fop.fo.FONode; 26 import org.apache.fop.fo.FObjMixed; 27 import org.apache.fop.fo.PropertyList; 28 import org.apache.fop.fo.properties.CommonAccessibility; 29 import org.apache.fop.fo.properties.CommonAural; 30 import org.apache.fop.fo.properties.CommonBorderPaddingBackground; 31 import org.apache.fop.fo.properties.CommonFont; 32 import org.apache.fop.fo.properties.CommonMarginInline; 33 import org.apache.fop.fo.properties.SpaceProperty; 34 35 39 public abstract class InlineLevel extends FObjMixed { 40 41 protected CommonBorderPaddingBackground commonBorderPaddingBackground; 43 protected CommonAccessibility commonAccessibility; 44 protected CommonMarginInline commonMarginInline; 45 protected CommonAural commonAural; 46 protected CommonFont commonFont; 47 protected Color color; 48 protected SpaceProperty lineHeight; 49 protected int visibility; 50 52 55 protected InlineLevel(FONode parent) { 56 super(parent); 57 } 58 59 62 public void bind(PropertyList pList) throws FOPException { 63 commonBorderPaddingBackground = pList.getBorderPaddingBackgroundProps(); 64 commonAccessibility = pList.getAccessibilityProps(); 65 commonMarginInline = pList.getMarginInlineProps(); 66 commonAural = pList.getAuralProps(); 67 commonFont = pList.getFontProps(); 68 color = pList.get(PR_COLOR).getColor(getUserAgent()); 69 lineHeight = pList.get(PR_LINE_HEIGHT).getSpace(); 70 visibility = pList.get(PR_VISIBILITY).getEnum(); 71 } 72 73 76 public CommonMarginInline getCommonMarginInline() { 77 return commonMarginInline; 78 } 79 80 83 public CommonBorderPaddingBackground getCommonBorderPaddingBackground() { 84 return commonBorderPaddingBackground; 85 } 86 87 90 public CommonFont getCommonFont() { 91 return commonFont; 92 } 93 94 97 public Color getColor() { 98 return color; 99 } 100 101 104 public SpaceProperty getLineHeight() { 105 return lineHeight; 106 } 107 108 } 109 110 | Popular Tags |