Groovy Documentation

src.groovy.pl.burningice.plugins.image.engines
Class Worker

java.lang.Object
  src.groovy.pl.burningice.plugins.image.engines.Worker

class Worker

Execute actions on image

author:
pawel.gdula@burningice.pl


Property Summary
private def loadedImage

Object represents image to manipulate

private java.lang.String resultDir

Path to output directory

 
Constructor Summary
Worker()

 
Method Summary
Worker execute(groovy.lang.Closure chain)

Methods execute action on image It use as a output file name name of original image

Worker execute(java.lang.String outputFileName, groovy.lang.Closure chain)

Methods execute action on image Allows to specify output name by the user

Worker execute(SaveCommand saveCommand, groovy.lang.Closure chain)

Methods execute action on image Allows to specify output name by the user

private void save(java.lang.String outputFilePath, ImageFile image)

Save changed image TODO: Check if this can be replaced by SaveCommand object

private Worker work(def outputFilePath, def fileName, def chain, ImageFile image)

Perform work

 
Methods inherited from class java.lang.Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

loadedImage

private def loadedImage
Object represents image to manipulate
var:
File/MultipartFile


resultDir

private java.lang.String resultDir
Path to output directory
var:
String


 
Constructor Detail

Worker

Worker()


 
Method Detail

execute

Worker execute(groovy.lang.Closure chain)
Methods execute action on image It use as a output file name name of original image
param:
Closure chain Chain of action on image
return:
BurningImageService


execute

Worker execute(java.lang.String outputFileName, groovy.lang.Closure chain)
Methods execute action on image Allows to specify output name by the user
param:
String Name of output image (without extension)
param:
Closure chain Chain of action on image
return:
Worker


execute

Worker execute(SaveCommand saveCommand, groovy.lang.Closure chain)
Methods execute action on image Allows to specify output name by the user
param:
String Name of output image (without extension)
param:
Closure chain Chain of action on image
return:
Worker


save

private void save(java.lang.String outputFilePath, ImageFile image)
Save changed image TODO: Check if this can be replaced by SaveCommand object
param:
outputFilePath Specify path to output image
param:
image ImageFile object representing image to manipulate


work

private Worker work(def outputFilePath, def fileName, def chain, ImageFile image)
Perform work
param:
outputFilePath Specify path to output image
param:
fileName Specify file name
param:
chain Specify work field
param:
image ImageFile object representing image to manipulate
return:
Self


 

Groovy Documentation