1 51 package org.apache.fop.layout.inline; 52 53 import org.apache.fop.render.Renderer; 54 import org.apache.fop.layout.*; 55 56 public class LeaderArea extends InlineArea { 57 58 int ruleThickness; 59 int leaderLengthOptimum; 60 int leaderPattern; 61 int ruleStyle; 62 63 float red, green, blue; 64 public LeaderArea(FontState fontState, float red, float green, 65 float blue, String text, int leaderLengthOptimum, 66 int leaderPattern, int ruleThickness, int ruleStyle) { 67 super(fontState, leaderLengthOptimum, red, green, blue); 68 69 this.leaderPattern = leaderPattern; 70 this.leaderLengthOptimum = leaderLengthOptimum; 71 this.ruleStyle = ruleStyle; 72 if (ruleStyle == org.apache.fop.fo.properties.RuleStyle.NONE) { 76 ruleThickness = 0; 77 } 78 this.ruleThickness = ruleThickness; 79 } 80 81 public void render(Renderer renderer) { 82 renderer.renderLeaderArea(this); 83 } 84 85 public int getRuleThickness() { 86 return this.ruleThickness; 87 } 88 89 public int getRuleStyle() { 90 return this.ruleStyle; 91 } 92 93 public int getLeaderPattern() { 94 return this.leaderPattern; 95 } 96 97 public int getLeaderLength() { 98 return this.contentRectangleWidth; 99 } 100 101 102 103 } 104 | Popular Tags |