|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext
org.apache.xmlgraphics.image.loader.impl.DefaultImageSessionContext
public class DefaultImageSessionContext
Very simple implementation of the ImageSessionContext interface. It works for absolute URLs and local filenames only. Consider writing your own implementation of the ImageSessionContext if you need more sophisticated functionality.
Constructor Summary | |
---|---|
DefaultImageSessionContext(ImageContext context,
java.io.File baseDir)
Main constructor. |
Method Summary | |
---|---|
java.io.File |
getBaseDir()
Returns the base directory for resolving relative filenames. |
ImageContext |
getParentContext()
Returns the session-independent context object which provides configuration information. |
float |
getTargetResolution()
Returns the resolution (in dpi) of the target device used when painting images. |
protected javax.xml.transform.Source |
resolveURI(java.lang.String uri)
Attempts to resolve the given URI. |
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext |
---|
getSource, isReusable, needSource, newSource, returnSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultImageSessionContext(ImageContext context, java.io.File baseDir)
context
- the parent image contextbaseDir
- the base directory for resolving relative filenamesMethod Detail |
---|
public ImageContext getParentContext()
public java.io.File getBaseDir()
protected javax.xml.transform.Source resolveURI(java.lang.String uri)
resolveURI
in class AbstractImageSessionContext
uri
- URI to access
Source
object, or null if the URI
cannot be resolved.public float getTargetResolution()
|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |