|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.pipeline.PipelineFactory
public class PipelineFactory
Factory class for image processing pipelines.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
logger |
Constructor Summary | |
---|---|
PipelineFactory(ImageManager manager)
Main constructor. |
Method Summary | |
---|---|
ImageProviderPipeline[] |
determineCandidatePipelines(Image sourceImage,
ImageFlavor[] flavors)
Finds and returns an array of ImageProviderPipeline instances which can handle
the convert the given Image and return one of the given ImageFlavor s. |
ImageProviderPipeline[] |
determineCandidatePipelines(ImageInfo imageInfo,
ImageFlavor targetFlavor)
Determines all possible pipelines for the given image that can produce the requested target flavor. |
ImageProviderPipeline[] |
determineCandidatePipelines(ImageInfo imageInfo,
ImageFlavor[] flavors)
Finds and returns an array of ImageProviderPipeline instances which can handle
the given MIME type and return one of the given ImageFlavor s. |
ImageProviderPipeline |
newImageConverterPipeline(Image originalImage,
ImageFlavor targetFlavor)
Creates and returns an ImageProviderPipeline that allows to load an image of the
given MIME type and present it in the requested image flavor. |
ImageProviderPipeline |
newImageConverterPipeline(ImageInfo imageInfo,
ImageFlavor targetFlavor)
Creates and returns an ImageProviderPipeline that allows to load an image of the
given MIME type and present it in the requested image flavor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public PipelineFactory(ImageManager manager)
manager
- the ImageManager instanceMethod Detail |
---|
public ImageProviderPipeline newImageConverterPipeline(Image originalImage, ImageFlavor targetFlavor)
ImageProviderPipeline
that allows to load an image of the
given MIME type and present it in the requested image flavor.
originalImage
- the original image that serves as the origin point of the conversiontargetFlavor
- the requested image flavor
ImageProviderPipeline
or null if no suitable pipeline could be assembledpublic ImageProviderPipeline newImageConverterPipeline(ImageInfo imageInfo, ImageFlavor targetFlavor)
ImageProviderPipeline
that allows to load an image of the
given MIME type and present it in the requested image flavor.
imageInfo
- the image info object of the original imagetargetFlavor
- the requested image flavor
ImageProviderPipeline
or null if no suitable pipeline could be assembledpublic ImageProviderPipeline[] determineCandidatePipelines(ImageInfo imageInfo, ImageFlavor targetFlavor)
imageInfo
- the image informationtargetFlavor
- the target flavor
public ImageProviderPipeline[] determineCandidatePipelines(ImageInfo imageInfo, ImageFlavor[] flavors)
ImageProviderPipeline
instances which can handle
the given MIME type and return one of the given ImageFlavor
s.
imageInfo
- the image info objectflavors
- the possible target flavors
public ImageProviderPipeline[] determineCandidatePipelines(Image sourceImage, ImageFlavor[] flavors)
ImageProviderPipeline
instances which can handle
the convert the given Image
and return one of the given ImageFlavor
s.
sourceImage
- the image to be convertedflavors
- the possible target flavors
|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |