Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

BodyRegion.java 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. /**
  9. * The body region area.
  10. * This area contains a main reference area and optionally a
  11. * before float and footnote area.
  12. */
  13. public class BodyRegion extends RegionReference {
  14. private BeforeFloat beforeFloat;
  15. private MainReference mainReference;
  16. private Footnote footnote;
  17. private int columnGap;
  18. private int columnCount;
  19. /** Referenc inline progression dimension for the body. */
  20. private int refIPD;
  21. /**
  22. * Create a new body region area.
  23. * This sets the region reference area class to BODY.
  24. */
  25. public BodyRegion() {
  26. super(BODY);
  27. }
  28. // Number of columns when not spanning
  29. public void setColumnCount(int colCount) {
  30. this.columnCount = colCount;
  31. }
  32. // Number of columns when not spanning
  33. public int getColumnCount() {
  34. return this.columnCount;
  35. }
  36. // A length (mpoints)
  37. public void setColumnGap(int colGap) {
  38. this.columnGap = colGap;
  39. }
  40. public void setBeforeFloat(BeforeFloat bf) {
  41. beforeFloat = bf;
  42. }
  43. public void setMainReference(MainReference mr) {
  44. mainReference = mr;
  45. }
  46. public void setFootnote(Footnote foot) {
  47. footnote = foot;
  48. }
  49. public BeforeFloat getBeforeFloat() {
  50. return beforeFloat;
  51. }
  52. public MainReference getMainReference() {
  53. return mainReference;
  54. }
  55. public Footnote getFootnote() {
  56. return footnote;
  57. }
  58. public Object clone() {
  59. BodyRegion br = new BodyRegion();
  60. br.setCTM(getCTM());
  61. br.setIPD(getIPD());
  62. br.columnGap = columnGap;
  63. br.columnCount = columnCount;
  64. return br;
  65. }
  66. }