kiyut.citra 3.7

kiyut.citra.canvas
Class FXRenderer

java.lang.Object
  extended by kiyut.citra.canvas.FXRenderer

public class FXRenderer
extends Object

FXRenderer for the FXCanvas

Author:
Kiyut

Field Summary
protected  FXCanvas canvas
           
protected  File file
           
protected  BufferedImageOp filterOp
           
protected  BufferedImage image
           
protected  boolean reloadFile
           
protected  boolean selectionFilter
           
protected  BufferedImage source
           
 
Constructor Summary
FXRenderer(FXCanvas canvas)
          Creates a new instance of FXRenderer
 
Method Summary
 void apply()
          Apply filter operation which means change the source image into the result of filter
protected  void crop(Area area)
          Crop Source Image
 void discard()
          Discard filter operation
 BufferedImageOp getFilterOp()
          Return the filterOp
 File getImageFile()
          Return file
 BufferedImage getRenderedImage()
          Return the rendered image
 BufferedImage getSourceImage()
          Return the source image
 void render()
          render the image using the applied filter from sourceImage into renderedImage if there are selection Area, the filter will only applied to that area, otherwise the whole image.
 void setFilterOp(BufferedImageOp filterOp)
          Set the filterOp
 void setImageFile(File file, boolean open)
          Set the Image file, if the param open is true file will be loaded after the first render call otherwise only set the file only, does not open or loading the image file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected File file

reloadFile

protected boolean reloadFile

image

protected BufferedImage image

source

protected BufferedImage source

filterOp

protected BufferedImageOp filterOp

canvas

protected FXCanvas canvas

selectionFilter

protected boolean selectionFilter
Constructor Detail

FXRenderer

public FXRenderer(FXCanvas canvas)
Creates a new instance of FXRenderer

Method Detail

getSourceImage

public BufferedImage getSourceImage()
Return the source image

Returns:
BufferedImage

getRenderedImage

public BufferedImage getRenderedImage()
Return the rendered image

Returns:
BufferedImage

setImageFile

public void setImageFile(File file,
                         boolean open)
Set the Image file, if the param open is true file will be loaded after the first render call otherwise only set the file only, does not open or loading the image file

Parameters:
file - File
open - true/false, if true file will be loaded after the first render call
See Also:
getImageFile()

getImageFile

public File getImageFile()
Return file

Returns:
File
See Also:
setImageFile(File,boolean)

setFilterOp

public void setFilterOp(BufferedImageOp filterOp)
Set the filterOp

Parameters:
filterOp - BufferedImageOp
See Also:
getFilterOp()

getFilterOp

public BufferedImageOp getFilterOp()
Return the filterOp

Returns:
BufferedImageOp
See Also:
setFilterOp(BufferedImageOp)

apply

public void apply()
Apply filter operation which means change the source image into the result of filter


discard

public void discard()
Discard filter operation


crop

protected void crop(Area area)
Crop Source Image

Parameters:
area - the specified area for cropping

render

public void render()
render the image using the applied filter from sourceImage into renderedImage if there are selection Area, the filter will only applied to that area, otherwise the whole image. If the filterOp or source is null, nothing performed

See Also:
getSourceImage(), getRenderedImage(), setFilterOp(BufferedImageOp)

kiyut.citra 3.7