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.

Container.java 763B

12345678910111213141516171819202122232425262728293031323334
  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.inline;
  8. import org.apache.fop.area.Area;
  9. import org.apache.fop.area.Block;
  10. import org.apache.fop.render.Renderer;
  11. import java.util.List;
  12. import java.util.ArrayList;
  13. public class Container extends Area {
  14. ArrayList blocks = new ArrayList();
  15. // this is an inline area that can have blocks as children
  16. public void render(Renderer renderer) {
  17. renderer.renderContainer(this);
  18. }
  19. public void addBlock(Block block) {
  20. blocks.add(block);
  21. }
  22. public List getBlocks() {
  23. return blocks;
  24. }
  25. }