All Packages Class Hierarchy This Package Previous Next Index
Interface com.ibm.eou.toolkit.graphics.Deformation
- public interface Deformation
This interface represents a deformation which can be applied to
a coordinate plane. This can be used, for example, for modifying
images. The extent of deformation can be controlled by the
deformation factor, which varies from 0.0 to 1.0.
-
getBounds()
- Return the bounding box within which the deformation
effects are contained.
-
getFactor()
- Return the current deformation factor.
-
getSourcePosition(Point, Point)
- Compute the source pixel from which the given pixel
has arisen under the deformation.
-
setBounds(int, int, int, int)
- Set the bounding box within which the deformation
effects are contained.
-
setFactor(double)
- Set the deformation factor.
getBounds
public abstract Rectangle getBounds()
- Return the bounding box within which the deformation
effects are contained.
setBounds
public abstract void setBounds(int x,
int y,
int width,
int height)
- Set the bounding box within which the deformation
effects are contained.
getFactor
public abstract double getFactor()
- Return the current deformation factor.
setFactor
public abstract void setFactor(double factor)
- Set the deformation factor. The deformation
factor can have values from 0.0 to 1.0,
representing varying degress of deformation.
getSourcePosition
public abstract boolean getSourcePosition(Point targetPosition,
Point sourcePosition)
- Compute the source pixel from which the given pixel
has arisen under the deformation. Return true if
such a pixel exists, in which case the coordinates
will be placed into the sourcePosition parameter,
or false if the given pixel is empty after the
deformation.
All Packages Class Hierarchy This Package Previous Next Index