Package it.tidalwave.image.java2d
Class CreateJ2DOp
- java.lang.Object
-
- it.tidalwave.image.op.OperationImplementation<CreateOp,java.awt.image.BufferedImage>
-
- it.tidalwave.image.java2d.CreateJ2DOp
-
public class CreateJ2DOp extends OperationImplementation<CreateOp,java.awt.image.BufferedImage>
- Author:
- Emmanuele Sordini, Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description CreateJ2DOp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(CreateOp operation)Sometimes an implementation can't handle a specific set of parameters.protected java.awt.image.BufferedImageexecute(CreateOp operation, EditableImage image, java.awt.image.BufferedImage bufferedImage)The concrete implementation of this operation should be provided by overriding this method.-
Methods inherited from class it.tidalwave.image.op.OperationImplementation
bind, execute
-
-
-
-
Method Detail
-
canHandle
public boolean canHandle(CreateOp operation)
Sometimes an implementation can't handle a specific set of parameters. In this case, this method must return false, so this implementation will be discarded. This method returns true by default, so subclasses with different behaviours should override it.- Overrides:
canHandlein classOperationImplementation<CreateOp,java.awt.image.BufferedImage>
-
execute
protected java.awt.image.BufferedImage execute(CreateOp operation, EditableImage image, java.awt.image.BufferedImage bufferedImage)
The concrete implementation of this operation should be provided by overriding this method.- Specified by:
executein classOperationImplementation<CreateOp,java.awt.image.BufferedImage>- Parameters:
operation- the operation to implementbufferedImage- the image representation
-
-