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.

Region.java 941B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.ArrayList;
  10. import java.util.List;
  11. public class Region implements Serializable {
  12. public static final int BEFORE = 0;
  13. public static final int START = 1;
  14. public static final int BODY = 2;
  15. public static final int END = 3;
  16. public static final int AFTER = 4;
  17. int regionClass = BEFORE;
  18. public Region(int type) {
  19. regionClass = type;
  20. }
  21. // the list of block areas from the static flow
  22. ArrayList blocks = new ArrayList();
  23. public List getBlocks() {
  24. return blocks;
  25. }
  26. public int getRegionClass() {
  27. return regionClass;
  28. }
  29. public void addBlock(Block block) {
  30. blocks.add(block);
  31. }
  32. }