|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.demo.WarpImageFigure
public class WarpImageFigure
Warps a image on a CubicCurve2D flattened path.
Constructor Summary | |
---|---|
WarpImageFigure(Image img)
|
Method Summary | |
---|---|
Shape |
getShape()
Get the outline shape of this figure. |
void |
paint(Graphics2D g2)
Paint the figure. |
void |
reset(int w,
int h)
|
void |
step(int w,
int h)
|
void |
transform(AffineTransform t)
Transform the figure with the supplied transform. |
void |
translate(double dx,
double dy)
Move the figure the indicated distance. |
Methods inherited from class diva.canvas.AbstractFigure |
---|
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, hit, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WarpImageFigure(Image img)
Method Detail |
---|
public void reset(int w, int h)
public void step(int w, int h)
public void paint(Graphics2D g2)
AbstractFigure
paint
in interface VisibleComponent
paint
in class AbstractFigure
public Shape getShape()
AbstractFigure
getShape
in interface Figure
getShape
in class AbstractFigure
public void transform(AffineTransform t)
AbstractFigure
transform
in interface Figure
transform
in class AbstractFigure
public void translate(double dx, double dy)
AbstractFigure
translate
in interface Figure
translate
in class AbstractFigure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |