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
-
DOWN_LEFT
- Dissolve type constant for a fill dissolve.
-
DOWN_RIGHT
- Dissolve type constant for a fill dissolve.
-
LEFT_DOWN
- Dissolve type constant for a fill dissolve.
-
LEFT_UP
- Dissolve type constant for a fill dissolve.
-
RANDOM
- Dissolve type constant for random dissolve.
-
RIGHT_DOWN
- Dissolve type constant for a fill dissolve.
-
RIGHT_UP
- Dissolve type constant for a fill dissolve.
-
SPIRAL_ANTICLOCKWISE_IN
- Dissolve type constant for a fill dissolve.
-
SPIRAL_ANTICLOCKWISE_OUT
- Dissolve type constant for a fill dissolve.
-
SPIRAL_CLOCKWISE_IN
- Dissolve type constant for a fill dissolve.
-
SPIRAL_CLOCKWISE_OUT
- Dissolve type constant for a fill dissolve.
-
UP_LEFT
- Dissolve type constant for a fill dissolve.
-
UP_RIGHT
- Dissolve type constant for a fill dissolve.
-
DissolveDeformation()
- Create a DissolveDeformation with default lens type and number of folds.
-
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.
-
getBlockSize()
- Return the block size for the dissolve.
-
getBounds()
-
-
getFactor()
-
-
getFirstBlock(Point)
- Compute the first block which should be included
to bring the factor above 0.0.
-
getLastBlock(Point)
- Compute the first block which should be omitted
to bring the factor below 1.0.
-
getNextBlock(Point)
- Compute the next block which should be included,
relative to the given block, to raise the factor.
-
getPreviousBlock(Point)
- Compute the next block which should be omitted,
relative to the given block, to lower the factor.
-
getSourcePosition(Point, Point)
-
-
getType()
-
-
setBlockSize(int, int)
- Set the block size for the dissolve.
-
setBounds(int, int, int, int)
-
-
setFactor(double)
-
-
setType(int)
-
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
DissolveDeformation
public DissolveDeformation()
- Create a DissolveDeformation with default lens type and number of folds.
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.
getBounds
public Rectangle getBounds()
setBounds
public void setBounds(int x,
int y,
int width,
int height)
getBlockSize
public Dimension getBlockSize()
- Return the block size for the dissolve.
setBlockSize
public void setBlockSize(int blockWidth,
int blockHeight)
- Set the block size for the dissolve.
getSourcePosition
public boolean getSourcePosition(Point targetPosition,
Point sourcePosition)
setFactor
public void setFactor(double factor)
getFactor
public double getFactor()
getType
public int getType()
setType
public void setType(int type)
getFirstBlock
public void getFirstBlock(Point firstBlock)
- Compute the first block which should be included
to bring the factor above 0.0.
getLastBlock
public void getLastBlock(Point lastBlock)
- Compute the first block which should be omitted
to bring the factor below 1.0.
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.
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