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.

BodyRegionArea.java 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* $Id$
  2. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  3. * For details on use and redistribution please refer to the
  4. * LICENSE file included with these sources.
  5. */
  6. package org.apache.fop.layout;
  7. import org.apache.fop.fo.properties.*;
  8. // Represents region-body viewport/reference areas.
  9. // The areas generated by fo:region-body are sufficiently dissimilar to
  10. // the other 4 regions that we employ a different class
  11. public class BodyRegionArea extends RegionArea {
  12. // the column count and column-gap
  13. private int columnCount;
  14. private int columnGap;
  15. public BodyRegionArea(int xPosition, int yPosition, int width, int height) {
  16. super(xPosition, yPosition, width, height);
  17. }
  18. public BodyAreaContainer makeBodyAreaContainer() {
  19. return new BodyAreaContainer(null, xPosition, yPosition, width, height,
  20. Position.ABSOLUTE, columnCount, columnGap);
  21. }
  22. public void setColumnCount(int columnCount) {
  23. this.columnCount = columnCount;
  24. }
  25. public int getColumnCount()
  26. {
  27. return columnCount;
  28. }
  29. public void setColumnGap(int columnGap) {
  30. this.columnGap = columnGap;
  31. }
  32. public int getColumnGap()
  33. {
  34. return columnGap;
  35. }
  36. }