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.

BlockLevelLayoutManager.java 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /* $Id$ */
  18. package org.apache.fop.layoutmgr;
  19. import org.apache.fop.fo.properties.KeepProperty;
  20. /**
  21. * The interface for LayoutManagers which generate block areas
  22. */
  23. public interface BlockLevelLayoutManager extends LayoutManager {
  24. /**
  25. * Negotiate BPD adjustment.
  26. * @param adj amount to adjust
  27. * @param lastElement the last knuth element
  28. * @return the resulting adjusted BPD
  29. */
  30. int negotiateBPDAdjustment(int adj, KnuthElement lastElement);
  31. /**
  32. * Discard space.
  33. * @param spaceGlue the space
  34. */
  35. void discardSpace(KnuthGlue spaceGlue);
  36. /**
  37. * Returns the keep-together strength for this element.
  38. * @return the keep-together strength
  39. */
  40. Keep getKeepTogether();
  41. /**
  42. * @return true if this element must be kept together
  43. */
  44. boolean mustKeepTogether();
  45. /**
  46. * Returns the keep-with-previous strength for this element.
  47. * @return the keep-with-previous strength
  48. */
  49. Keep getKeepWithPrevious();
  50. /**
  51. * @return true if this element must be kept with the previous element.
  52. */
  53. boolean mustKeepWithPrevious();
  54. /**
  55. * Returns the keep-with-next strength for this element.
  56. * @return the keep-with-next strength
  57. */
  58. Keep getKeepWithNext();
  59. /**
  60. * @return true if this element must be kept with the next element.
  61. */
  62. boolean mustKeepWithNext();
  63. /**
  64. * Returns the keep-together property specified on the FObj.
  65. * @return the keep-together property
  66. */
  67. KeepProperty getKeepTogetherProperty();
  68. /**
  69. * Returns the keep-with-previous property specified on the FObj.
  70. * @return the keep-together property
  71. */
  72. KeepProperty getKeepWithPreviousProperty();
  73. /**
  74. * Returns the keep-with-next property specified on the FObj.
  75. * @return the keep-together property
  76. */
  77. KeepProperty getKeepWithNextProperty();
  78. }