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.

TreeExt.java 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. * Area tree extension interface.
  10. * This interface is used by area tree extensions that are handled
  11. * by the renderer.
  12. * When this extension is handled by the area tree it is rendered
  13. * according to the three possibilities, IMMEDIATELY, AFTER_PAGE
  14. * or END_OF_DOC.
  15. */
  16. public interface TreeExt {
  17. /**
  18. * Render this extension immediately when
  19. * being handled by the area tree.
  20. */
  21. public static final int IMMEDIATELY = 0;
  22. /**
  23. * Render this extension after the next page is rendered
  24. * or prepared when being handled by the area tree.
  25. */
  26. public static final int AFTER_PAGE = 1;
  27. /**
  28. * Render this extension at the end of the document once
  29. * all pages have been fully rendered.
  30. */
  31. public static final int END_OF_DOC = 2;
  32. /**
  33. * Check if this tree extension is also resolveable so that
  34. * the area tree can do id reference resolution when the
  35. * extension is added to the area tree.
  36. *
  37. * @return true if this also implements resolveable
  38. */
  39. boolean isResolveable();
  40. /**
  41. * Get the mime type for the document that this area tree
  42. * extension applies.
  43. *
  44. * @return the mime type of the document where this applies
  45. */
  46. String getMimeType();
  47. /**
  48. * Get the name of this extension.
  49. *
  50. * @return the name of this extension
  51. */
  52. String getName();
  53. }