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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* $Id$ */
  17. package org.apache.fop.area;
  18. import java.util.List;
  19. /**
  20. * Resolveable Interface.
  21. * Classes that implement this can be resolved when
  22. * an id is added to the area tree.
  23. */
  24. public interface Resolveable {
  25. /**
  26. * Check if this area has been resolved.
  27. *
  28. * @return true once this area is resolved
  29. */
  30. boolean isResolved();
  31. /**
  32. * Get the array of id references of this resolveable object.
  33. * If this object contains child resolveables that are
  34. * resolved through this then it should return the id's of
  35. * the child also.
  36. *
  37. * @return the id references for resolving this object
  38. */
  39. String[] getIDs();
  40. /**
  41. * This resolves reference with a list of pages.
  42. * The pages (PageViewport) contain the rectangle of the area.
  43. * @param id the id to resolve
  44. * @param pages the list of pages with the id area
  45. * may be null if not found
  46. */
  47. void resolve(String id, List pages);
  48. }