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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* $Id$ */
  17. package org.apache.fop.area;
  18. import java.util.List;
  19. /**
  20. * The main body reference area.
  21. * This area that contains the flow via the span areas.
  22. */
  23. public class MainReference extends Area {
  24. private List spanAreas = new java.util.ArrayList();
  25. private int columnGap;
  26. private int width;
  27. /**
  28. * Add a span area to this area.
  29. *
  30. * @param span the span area to add
  31. */
  32. public void addSpan(Span span) {
  33. spanAreas.add(span);
  34. }
  35. /**
  36. * Get the span areas from this area.
  37. *
  38. * @return the list of span areas
  39. */
  40. public List getSpans() {
  41. return spanAreas;
  42. }
  43. /**
  44. * Get the column gap in millipoints.
  45. *
  46. * @return the column gap in millioints
  47. */
  48. public int getColumnGap() {
  49. return columnGap;
  50. }
  51. /**
  52. * Get the width of this reference area.
  53. *
  54. * @return the width
  55. */
  56. public int getWidth() {
  57. return width;
  58. }
  59. }