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.

InlineArea.java 762B

123456789101112131415161718192021222324252627282930313233
  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.render.Renderer;
  10. public class InlineArea extends Area {
  11. int width;
  12. int height;
  13. // position within the line area, either top or baseline
  14. int verticalPosition;
  15. // width, height, vertical alignment
  16. // inline areas are expected to implement this method
  17. // to render themselves
  18. public void render(Renderer renderer) {
  19. }
  20. public void setWidth(int w) {
  21. width = w;
  22. }
  23. public int getWidth() {
  24. return width;
  25. }
  26. }