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.

123456789101112131415161718192021222324252627
  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.MinOptMax;
  9. public class Stretch extends InlineArea {
  10. MinOptMax contentIPD = null;
  11. public void setAllocationIPD(MinOptMax mom) {
  12. contentIPD = mom;
  13. }
  14. public MinOptMax getAllocationIPD() {
  15. // Should also account for any borders and padding in the
  16. // inline progression dimension
  17. if (contentIPD != null) {
  18. return contentIPD;
  19. }
  20. return super.getAllocationIPD();
  21. }
  22. }