Class CreateJ2DOp

    • Constructor Summary

      Constructors 
      Constructor Description
      CreateJ2DOp()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canHandle​(CreateOp operation)
      Sometimes an implementation can't handle a specific set of parameters.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CreateJ2DOp

        public CreateJ2DOp()
    • 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:
        canHandle in class OperationImplementation<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:
        execute in class OperationImplementation<CreateOp,​java.awt.image.BufferedImage>
        Parameters:
        operation - the operation to implement
        bufferedImage - the image representation