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.

LineArea.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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;
  8. import org.apache.fop.area.inline.InlineArea;
  9. import java.util.ArrayList;
  10. import java.util.List;
  11. // a line area can contain information in ranges of child inline
  12. // areas that have properties such as
  13. // links, background, underline, bold, id areas
  14. public class LineArea extends Area {
  15. int stacking = LR;
  16. // contains inline areas
  17. // has start indent and length, dominant baseline, height
  18. int startIndent;
  19. int length;
  20. int lineHeight;
  21. // this is the offset for the dominant baseline
  22. int baseLine;
  23. // this class can contain the dominant char styling info
  24. // this means that many renderers can optimise a bit
  25. ArrayList inlineAreas = new ArrayList();
  26. public void addInlineArea(InlineArea area) {
  27. inlineAreas.add(area);
  28. }
  29. public List getInlineAreas() {
  30. return inlineAreas;
  31. }
  32. }
  33. /*
  34. class LineProperty {
  35. int propType;
  36. int[] range;
  37. Object data;
  38. }
  39. */