SourceForge.net Logo
aXSL API 0.1

org.axsl.graphicR
Interface GraphicServer


public interface GraphicServer

Interface for creating Graphic objects.


Method Summary
 Graphic makeGraphic(java.lang.String href, java.net.URL[] baseURLs, boolean cachingThisGraphic)
          Finds or creates a Graphic instance.
 

Method Detail

makeGraphic

public Graphic makeGraphic(java.lang.String href,
                           java.net.URL[] baseURLs,
                           boolean cachingThisGraphic)
                    throws GraphicException
Finds or creates a Graphic instance.

Parameters:
href - The graphic URL as a String. Note that this String should not be enclosed in a url(), but should be just a valid URI reference as defined in RFC2396.
baseURLs - An array of URLs containing, in order, the base locations that should be tried when resolving an href that indicates a relative path. Element 0 will be tried first, then element 1, etc.
cachingThisGraphic - Set to true if a pointer to this instance should be kept for later reuse. Set to false if you don't want to spend the memory for this. (Note: This is done in the makeGraphic method so that this decision can conceivably be made separately for each graphic.)
Returns:
The Graphic instance.
Throws:
GraphicException - For errors an error occured during construction.

SourceForge.net Logo
aXSL API 0.1

This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.