Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Footnote.java 976B

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