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.

Resolveable.java 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. import java.util.List;
  9. /**
  10. * Resolveable Interface.
  11. * Classes that implement this can be resolved when
  12. * an id is added to the area tree.
  13. */
  14. public interface Resolveable {
  15. /**
  16. * Check if this area has been resolved.
  17. *
  18. * @return true once this area is resolved
  19. */
  20. boolean isResolved();
  21. /**
  22. * Get the array of id references of this resolveable object.
  23. * If this object contains child resolveables that are
  24. * resolved through this then it should return the id's of
  25. * the child also.
  26. *
  27. * @return the id references for resolving this object
  28. */
  29. String[] getIDs();
  30. /**
  31. * This resolves reference with a list of pages.
  32. * The pages (PageViewport) contain the rectangle of the area.
  33. * @param id the id to resolve
  34. * @param pages the list of pages with the id area
  35. * may be null if not found
  36. */
  37. void resolve(String id, List pages);
  38. }