P
- type of ParameterProviderpublic class ImageOperationChain<P extends ParameterProvider<?>> extends Object implements ImageOperation<P>, ImageGenerator<P>
Constructor and Description |
---|
ImageOperationChain() |
Modifier and Type | Method and Description |
---|---|
void |
addOperation(ImageOperation<P> operation) |
BufferedImage |
apply(BufferedImage source,
P params) |
BufferedImage |
generate(P params) |
String |
getName() |
List<ImageOperation<P>> |
getOperations() |
OutputFormat |
getOutputFormat() |
OutputFormat |
getOutputFormat(P params)
Returns the static output format as configured with c2b by delegating to
getOutputFormat() . |
ParameterProviderFactory |
getParameterProviderFactory() |
void |
setName(String name) |
void |
setOperations(List<ImageOperation<P>> operations) |
void |
setOutputFormat(OutputFormat outputFormat) |
void |
setParameterProviderFactory(ParameterProviderFactory parameterProviderFactory) |
public BufferedImage generate(P params) throws ImagingException
generate
in interface ImageGenerator<P extends ParameterProvider<?>>
ImagingException
public BufferedImage apply(BufferedImage source, P params) throws ImagingException
apply
in interface ImageOperation<P extends ParameterProvider<?>>
ImagingException
public String getName()
getName
in interface ImageGenerator<P extends ParameterProvider<?>>
public void setName(String name)
public ParameterProviderFactory getParameterProviderFactory()
getParameterProviderFactory
in interface ImageGenerator<P extends ParameterProvider<?>>
public void setParameterProviderFactory(ParameterProviderFactory parameterProviderFactory)
public OutputFormat getOutputFormat()
public OutputFormat getOutputFormat(P params)
getOutputFormat()
.getOutputFormat
in interface ImageGenerator<P extends ParameterProvider<?>>
public void setOutputFormat(OutputFormat outputFormat)
public List<ImageOperation<P>> getOperations()
public void setOperations(List<ImageOperation<P>> operations)
public void addOperation(ImageOperation<P> operation)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.