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.

Footnote.java 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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;
  8. import java.io.Serializable;
  9. import java.util.List;
  10. import java.util.ArrayList;
  11. // may combine with before float into a conditional area
  12. public class Footnote implements Serializable {
  13. Block separator = null;
  14. // footnote has an optional separator
  15. // and a list of sub block areas that can be added/removed
  16. // this is the relative position of the footnote inside
  17. // the body region
  18. int top;
  19. ArrayList blocks = null;
  20. public void setSeparator(Block sep) {
  21. separator = sep;
  22. }
  23. public void addBlock(Block block) {
  24. if (blocks == null) {
  25. blocks = new ArrayList();
  26. }
  27. blocks.add(block);
  28. }
  29. public Block getSeparator() {
  30. return separator;
  31. }
  32. public List getBlocks() {
  33. return blocks;
  34. }
  35. }