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.

Image.java 879B

123456789101112131415161718192021222324252627282930313233343536373839
  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.inline;
  8. import org.apache.fop.area.Area;
  9. /**
  10. * Image area for external-graphic.
  11. * This area holds information for rendering an image.
  12. * The url of the image is used as a key to reference the image cache.
  13. */
  14. public class Image extends Area {
  15. private String url;
  16. /**
  17. * Create a new image with the given url.
  18. *
  19. * @param u the url of the image
  20. */
  21. public Image(String u) {
  22. url = u;
  23. }
  24. /**
  25. * Get the url of this image.
  26. * This url is used as a key to locate the actual image data.
  27. *
  28. * @return the url of this image
  29. */
  30. public String getURL() {
  31. return url;
  32. }
  33. }