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.

MainReference.java 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * $Id$
  3. * Copyright (C) 2001-2002 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.ArrayList;
  9. import java.util.List;
  10. /**
  11. * The main body reference area.
  12. * This area that contains the flow via the span areas.
  13. */
  14. public class MainReference extends Area {
  15. private List spanAreas = new ArrayList();
  16. private int columnGap;
  17. private int width;
  18. /**
  19. * Add a span area to this area.
  20. *
  21. * @param span the span area to add
  22. */
  23. public void addSpan(Span span) {
  24. spanAreas.add(span);
  25. }
  26. /**
  27. * Get the span areas from this area.
  28. *
  29. * @return the list of span areas
  30. */
  31. public List getSpans() {
  32. return spanAreas;
  33. }
  34. /**
  35. * Get the column gap in millipoints.
  36. *
  37. * @return the column gap in millioints
  38. */
  39. public int getColumnGap() {
  40. return columnGap;
  41. }
  42. /**
  43. * Get the width of this reference area.
  44. *
  45. * @return the width
  46. */
  47. public int getWidth() {
  48. return width;
  49. }
  50. }