1 51 package org.apache.fop.fo; 52 53 import org.apache.fop.datatypes.*; 55 import org.apache.fop.layout.*; 56 import org.apache.fop.apps.FOPException; 57 58 61 public class Title extends ToBeImplementedElement { 62 63 public static class Maker extends FObj.Maker { 64 public FObj make(FObj parent, PropertyList propertyList, 65 String systemId, int line, int column) 66 throws FOPException { 67 return new Title(parent, propertyList, systemId, line, column); 68 } 69 70 } 71 72 public static FObj.Maker maker() { 73 return new Title.Maker(); 74 } 75 76 protected Title(FObj parent, PropertyList propertyList, 77 String systemId, int line, int column) 78 throws FOPException { 79 super(parent, propertyList, systemId, line, column); 80 } 81 82 public String getName() { 83 return "fo:title"; 84 } 85 86 public int layout(Area area) throws FOPException { 87 88 AccessibilityProps mAccProps = propMgr.getAccessibilityProps(); 90 91 AuralProps mAurProps = propMgr.getAuralProps(); 93 94 BorderAndPadding bap = propMgr.getBorderAndPadding(); 96 BackgroundProps bProps = propMgr.getBackgroundProps(); 97 98 FontState fontState = propMgr.getFontState(area.getFontInfo()); 100 101 MarginInlineProps mProps = propMgr.getMarginInlineProps(); 103 104 Property prop; 105 prop = this.properties.get("baseline-shift"); 106 if (prop instanceof LengthProperty) { 107 Length bShift = prop.getLength(); 108 } else if (prop instanceof EnumProperty) { 109 int bShift = prop.getEnum(); 110 } 111 ColorType col = this.properties.get("color").getColorType(); 112 Length lHeight = this.properties.get("line-height").getLength(); 113 int lShiftAdj = this.properties.get( 114 "line-height-shift-adjustment").getEnum(); 115 int vis = this.properties.get("visibility").getEnum(); 116 Length zIndex = this.properties.get("z-index").getLength(); 117 118 return super.layout(area); 119 } 120 } 121 | Popular Tags |