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.


Method Index

 o getBounds()
Return the bounding box within which the deformation effects are contained.
 o getFactor()
Return the current deformation factor.
 o getSourcePosition(Point, Point)
Compute the source pixel from which the given pixel has arisen under the deformation.
 o setBounds(int, int, int, int)
Set the bounding box within which the deformation effects are contained.
 o setFactor(double)
Set the deformation factor.

Methods

 o getBounds
 public abstract Rectangle getBounds()
Return the bounding box within which the deformation effects are contained.

 o setBounds
 public abstract void setBounds(int x,
                                int y,
                                int width,
                                int height)
Set the bounding box within which the deformation effects are contained.

 o getFactor
 public abstract double getFactor()
Return the current deformation factor.

 o 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.

 o 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