You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Leader.java 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * $Id$
  3. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  4. * For details on use and redistribution please refer to the
  5. * LICENSE file included with these sources.
  6. */
  7. package org.apache.fop.area.inline;
  8. import org.apache.fop.render.Renderer;
  9. public class Leader extends Stretch {
  10. // pattern, length min opt max
  11. // in the case of use content or dots this is replaced
  12. // with the set of inline areas
  13. // if space replaced with a space
  14. // otherwise this is a holder for a line
  15. public static final int DOTTED = 0;
  16. public static final int DASHED = 1;
  17. public static final int SOLID = 2;
  18. public static final int DOUBLE = 3;
  19. public static final int GROOVE = 4;
  20. public static final int RIDGE = 5;
  21. int ruleStyle = SOLID;
  22. int ruleThickness = 1000;
  23. public Leader() {
  24. }
  25. public void setRuleStyle(int style) {
  26. ruleStyle = style;
  27. }
  28. public void setRuleThickness(int rt) {
  29. ruleThickness = rt;
  30. }
  31. public int getRuleStyle() {
  32. return ruleStyle;
  33. }
  34. public int getRuleThickness() {
  35. return ruleThickness;
  36. }
  37. public void render(Renderer renderer) {
  38. renderer.renderLeader(this);
  39. }
  40. }