Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

RegionRefArea.java 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. */
  18. package org.apache.fop.area;
  19. import java.util.ArrayList;
  20. import java.util.List;
  21. import org.apache.fop.datastructs.Node;
  22. import org.apache.fop.fo.FONode;
  23. import org.apache.fop.fo.flow.FoPageSequence;
  24. /**
  25. * This is an abstract reference area for the page regions - currently
  26. * region-body, region-before, region-after, region-start and region-end.
  27. * It is cloneable through the ReferenceArea interface implementation.
  28. */
  29. public abstract class RegionRefArea
  30. extends BlockReferenceArea
  31. implements ReferenceArea {
  32. // the list of block areas from the static flow
  33. private ArrayList blocks = new ArrayList();
  34. /**
  35. * Creates a new region reference area, without a defined rectangular area
  36. * @param pageSeq the generating page sequence
  37. * @param generatedBy the generating node; in this case, the page sequence
  38. * @param parent the associated viewport area
  39. * @param sync
  40. */
  41. public RegionRefArea(
  42. FoPageSequence pageSeq,
  43. FONode generatedBy,
  44. Node parent,
  45. Object sync) {
  46. super(pageSeq, generatedBy, parent, sync);
  47. }
  48. /**
  49. * Get the block in this region.
  50. *
  51. * @return the list of blocks in this region
  52. */
  53. public List getBlocks() {
  54. return blocks;
  55. }
  56. }