P
- type of ParameterProvider's parameterpublic abstract class AbstractLoader<P extends ParameterProvider<?>> extends Object implements ImageOperation<P>
Modifier | Constructor and Description |
---|---|
protected |
AbstractLoader() |
protected |
AbstractLoader(Color backgroundColor) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
apply(BufferedImage source,
P filterParams) |
protected BufferedImage |
doReadAndClose(InputStream inputStream) |
Color |
getBackgroundColor() |
ImageDecoder |
getImageDecoder() |
protected abstract BufferedImage |
loadSource(P filterParams) |
void |
setBackgroundColor(Color backgroundColor) |
void |
setImageDecoder(ImageDecoder imageDecoder) |
protected AbstractLoader()
protected AbstractLoader(Color backgroundColor)
public BufferedImage apply(BufferedImage source, P filterParams) throws ImagingException
apply
in interface ImageOperation<P extends ParameterProvider<?>>
ImagingException
protected abstract BufferedImage loadSource(P filterParams) throws ImagingException
ImagingException
protected BufferedImage doReadAndClose(InputStream inputStream) throws IOException, ImagingException
IOException
ImagingException
public ImageDecoder getImageDecoder()
public void setImageDecoder(ImageDecoder imageDecoder)
public Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.