j2d.filters.bufferedImageConvolution
Class ImageMatrixBean

java.lang.Object
  extended by j2d.filters.bufferedImageConvolution.ImageMatrixBean
All Implemented Interfaces:
java.io.Serializable

public class ImageMatrixBean
extends java.lang.Object
implements java.io.Serializable

Robert Distinti The image matrix bean -- modified from DocJava PreferencesBean

See Also:
Serialized Form

Constructor Summary
ImageMatrixBean()
           
 
Method Summary
 byte getBorderType()
           
 int getCount()
           
 byte[][] getData()
           
 int getFilterType()
          "convolution", "fftr2", "pfa"
 java.awt.Image getImage()
          create an image that has 0 and 255 for the pixels
 java.awt.Image getImage(int width, int height)
          make an image that is widthxheight in size.
 ImageMatrixBeanProcessorInterface getImageProcessor()
           
 java.awt.image.Kernel getKernel()
           
 int getMatrixSize()
           
 java.lang.String getString()
           
static ImageMatrixBean restore()
          restores the properties from the preference in the user root.
 void save()
          saves the properties to the Preferences of the userRoot
 void setBorderType(byte value)
           
 void setData(byte[][] data)
           
 void setFilterType(int selectedIndex)
          "convolution", "fftr2", "pfa"
 void setImageProcessor(ImageMatrixBeanProcessorInterface imbpi)
           
 void setMatrixSize(int matrixSize)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageMatrixBean

public ImageMatrixBean()
Method Detail

getCount

public int getCount()

save

public void save()
saves the properties to the Preferences of the userRoot


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

restore

public static ImageMatrixBean restore()
restores the properties from the preference in the user root.


getData

public byte[][] getData()

getKernel

public java.awt.image.Kernel getKernel()

setData

public void setData(byte[][] data)

getMatrixSize

public int getMatrixSize()

setMatrixSize

public void setMatrixSize(int matrixSize)

getBorderType

public byte getBorderType()

setBorderType

public void setBorderType(byte value)

getString

public java.lang.String getString()

setFilterType

public void setFilterType(int selectedIndex)
"convolution", "fftr2", "pfa"


getFilterType

public int getFilterType()
"convolution", "fftr2", "pfa"


getImage

public java.awt.Image getImage()
create an image that has 0 and 255 for the pixels

Returns:
Image of the ImageMatrixBean

getImageProcessor

public ImageMatrixBeanProcessorInterface getImageProcessor()

setImageProcessor

public void setImageProcessor(ImageMatrixBeanProcessorInterface imbpi)

getImage

public java.awt.Image getImage(int width,
                               int height)
make an image that is widthxheight in size. Use the kernal that is mxn in size and add to the top, bottom left and right. For example, if you want a 10x10 and the kernal is 3x3, you add 10/2 - 3/2 = 4 to the left 10/2 - 3/2 = 4 to the top the bottom will be the top - 1 and the right will be the left - 1; So add 3 to the right and 3 to the bottom.

Parameters:
width -
height -
Returns:
grown image