|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object becker.xtras.imageTransformation.SampleTransformations
public final class SampleTransformations
A sample class implementing the ITransformations
interface.
It can apply a number of transformations to an image.
Please see the package description for a more in-depth discussion of using this class.
Constructor Summary | |
---|---|
SampleTransformations()
|
Method Summary | |
---|---|
void |
addView(IView aView)
Add a view (graphical user interface) to the image transformer. |
int[][] |
getPixels()
Get the image that was transformed. |
String[] |
getTransformationNames()
A array filled with the names of the transformations implemented by this class. |
void |
performTransformation(String transformationName)
Perform the transformation indicated. |
void |
setPixels(int[][] newPix)
Set the image to be transformed to a new set of pixels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleTransformations()
Method Detail |
---|
public void setPixels(int[][] newPix)
ITransformations
setPixels
in interface ITransformations
newPix
- The new image to be used for subsequent transformations.public int[][] getPixels()
ITransformations
getPixels
in interface ITransformations
public void performTransformation(String transformationName)
ITransformations
performTransformation
in interface ITransformations
transformationName
- The name of the transformation to perform. Must
be one of the transformation names returned by getTransformationNames
.public String[] getTransformationNames()
ITransformations
getTransformationNames
in interface ITransformations
public void addView(IView aView)
ITransformations
updateView
method must be called each time the transformer's state changes.
addView
in interface ITransformations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |