All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eou.toolkit.graphics.DissolveDeformation

java.lang.Object
   |
   +----com.ibm.eou.toolkit.graphics.DissolveDeformation

public class DissolveDeformation
extends Object
implements Deformation
This deformation creates a dissolve effect


Variable Index

 o DOWN_LEFT
Dissolve type constant for a fill dissolve.
 o DOWN_RIGHT
Dissolve type constant for a fill dissolve.
 o LEFT_DOWN
Dissolve type constant for a fill dissolve.
 o LEFT_UP
Dissolve type constant for a fill dissolve.
 o RANDOM
Dissolve type constant for random dissolve.
 o RIGHT_DOWN
Dissolve type constant for a fill dissolve.
 o RIGHT_UP
Dissolve type constant for a fill dissolve.
 o SPIRAL_ANTICLOCKWISE_IN
Dissolve type constant for a fill dissolve.
 o SPIRAL_ANTICLOCKWISE_OUT
Dissolve type constant for a fill dissolve.
 o SPIRAL_CLOCKWISE_IN
Dissolve type constant for a fill dissolve.
 o SPIRAL_CLOCKWISE_OUT
Dissolve type constant for a fill dissolve.
 o UP_LEFT
Dissolve type constant for a fill dissolve.
 o UP_RIGHT
Dissolve type constant for a fill dissolve.

Constructor Index

 o DissolveDeformation()
Create a DissolveDeformation with default lens type and number of folds.
 o DissolveDeformation(int, int, int, int, int, int, int)
Create a dissolve deformation contained within the specified bounds, and where the dissolve is performed in blocks of the specified size.

Method Index

 o getBlockSize()
Return the block size for the dissolve.
 o getBounds()
 o getFactor()
 o getFirstBlock(Point)
Compute the first block which should be included to bring the factor above 0.0.
 o getLastBlock(Point)
Compute the first block which should be omitted to bring the factor below 1.0.
 o getNextBlock(Point)
Compute the next block which should be included, relative to the given block, to raise the factor.
 o getPreviousBlock(Point)
Compute the next block which should be omitted, relative to the given block, to lower the factor.
 o getSourcePosition(Point, Point)
 o getType()
 o setBlockSize(int, int)
Set the block size for the dissolve.
 o setBounds(int, int, int, int)
 o setFactor(double)
 o setType(int)

Variables

 o RANDOM
 public static final int RANDOM
Dissolve type constant for random dissolve. Pixels are included/omitted one by one in a randomly pre-determined sequence.

 o DOWN_RIGHT
 public static final int DOWN_RIGHT
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one down from the top and across each row from the left.

 o UP_RIGHT
 public static final int UP_RIGHT
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one up from the bottom and across each row from the left.

 o DOWN_LEFT
 public static final int DOWN_LEFT
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one down from the top and across each row from the right.

 o UP_LEFT
 public static final int UP_LEFT
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one up from the bottom and across each row from the right.

 o RIGHT_DOWN
 public static final int RIGHT_DOWN
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one across from the left and down each column from the top.

 o RIGHT_UP
 public static final int RIGHT_UP
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one across from the left and up each column from the bottom.

 o LEFT_DOWN
 public static final int LEFT_DOWN
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one across from the right and down each column from the top.

 o LEFT_UP
 public static final int LEFT_UP
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one down from the top and across each row from the left.

 o SPIRAL_CLOCKWISE_IN
 public static final int SPIRAL_CLOCKWISE_IN
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one in a spiral clockwise inwards.

 o SPIRAL_CLOCKWISE_OUT
 public static final int SPIRAL_CLOCKWISE_OUT
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one in a spiral clockwise outwards.

 o SPIRAL_ANTICLOCKWISE_IN
 public static final int SPIRAL_ANTICLOCKWISE_IN
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one in a spiral anti-clockwise inwards.

 o SPIRAL_ANTICLOCKWISE_OUT
 public static final int SPIRAL_ANTICLOCKWISE_OUT
Dissolve type constant for a fill dissolve. Pixels are included/omitted one by one in a spiral anti-clockwise outwards.

Constructors

 o DissolveDeformation
 public DissolveDeformation()
Create a DissolveDeformation with default lens type and number of folds.

 o DissolveDeformation
 public DissolveDeformation(int x,
                            int y,
                            int width,
                            int height,
                            int blockWidth,
                            int blockHeight,
                            int type)
Create a dissolve deformation contained within the specified bounds, and where the dissolve is performed in blocks of the specified size. The dissolve mask is built randomly.

Methods

 o getBounds
 public Rectangle getBounds()
 o setBounds
 public void setBounds(int x,
                       int y,
                       int width,
                       int height)
 o getBlockSize
 public Dimension getBlockSize()
Return the block size for the dissolve.

 o setBlockSize
 public void setBlockSize(int blockWidth,
                          int blockHeight)
Set the block size for the dissolve.

 o getSourcePosition
 public boolean getSourcePosition(Point targetPosition,
                                  Point sourcePosition)
 o setFactor
 public void setFactor(double factor)
 o getFactor
 public double getFactor()
 o getType
 public int getType()
 o setType
 public void setType(int type)
 o getFirstBlock
 public void getFirstBlock(Point firstBlock)
Compute the first block which should be included to bring the factor above 0.0.

 o getLastBlock
 public void getLastBlock(Point lastBlock)
Compute the first block which should be omitted to bring the factor below 1.0.

 o getNextBlock
 public boolean getNextBlock(Point block)
Compute the next block which should be included, relative to the given block, to raise the factor. Return true if such a block exists, or false if the given block is the last block to include.

 o getPreviousBlock
 public boolean getPreviousBlock(Point block)
Compute the next block which should be omitted, relative to the given block, to lower the factor. Return true if such a block exists, or false if the given block is the last block to omit.


All Packages  Class Hierarchy  This Package  Previous  Next  Index