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.

BeforeFloat.java 851B

123456789101112131415161718192021222324252627282930313233343536373839
  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. public class BeforeFloat extends Area {
  11. // this is an optional block area that will be rendered
  12. // as the separator only if there are float areas
  13. Block separator = null;
  14. // before float area
  15. // has an optional separator
  16. // and a list of sub block areas
  17. ArrayList blocks = null;
  18. public List getBlocks() {
  19. return blocks;
  20. }
  21. public Block getSeparator() {
  22. return separator;
  23. }
  24. public int getHeight() {
  25. if (blocks == null) {
  26. return 0;
  27. }
  28. int h = 0;
  29. return h;
  30. }
  31. }