|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Animator
Method Summary | |
---|---|
void |
create(int shapeID,
java.lang.String shape,
java.awt.Label l,
double x,
double y,
double w,
double h,
double arcW,
double arcH,
double x2,
double y2,
int type,
double time)
Adds a Shape at given location Shapes: Line2D, QuadCurve2D, CubicCurve2D, Rectangle2D, RoundRectangle2D, Arc2D, Ellipse2D |
void |
destroy(int shapeID,
double time)
Destroys a Shape based on ShapeID |
void |
rotate(int shapeID,
double theta,
double x,
double y,
double time)
Rotates a shape |
void |
scale(int shapeID,
double sx,
double sy,
double time)
Scales a Shape |
void |
setPaint(int shapeID,
java.awt.Color c1,
java.awt.Color c2,
double time)
Paint Method for gradient color, uses 2 Color arguments |
void |
setPaint(int shapeID,
java.awt.Color c,
double time)
Paint Method for solid color, uses 1 Color argument |
void |
shear(int shapeID,
double shx,
double shy,
double time)
Shears a Shape |
void |
translate(int shapeID,
double tx,
double ty,
double time)
Translates a Shape to a new (x,y) location |
Method Detail |
---|
void create(int shapeID, java.lang.String shape, java.awt.Label l, double x, double y, double w, double h, double arcW, double arcH, double x2, double y2, int type, double time)
shapeID
- id for the new Shapeshape
- Shape of the objectl
- Label for the created Shapex
- x-coordinate of the locationy
- y-coordinate of the locationw
- width of the shapeh
- height of the shapearcW
- arc width for curvesarcH
- arc height for curvesx2
- double needed for some shapesy2
- double needed for some shapestype
- type needed for certian shapestime
- Simulation timevoid destroy(int shapeID, double time)
shapeID
- id of the Shape to destroytime
- SImulation timevoid translate(int shapeID, double tx, double ty, double time)
shapeID
- id of Shape to translatetx
- new x-coordinatety
- new y-coordinatetime
- Simulation timevoid rotate(int shapeID, double theta, double x, double y, double time)
shapeID
- id of Shape to tanslatetheta
- angle of rotationx
- new x-coordinatey
- new y-coordinatetime
- Simulation timevoid scale(int shapeID, double sx, double sy, double time)
shapeID
- id of Shape to scalesx
- scaled x-coordinatesy
- scaled y-coordiantetime
- Simulation timevoid shear(int shapeID, double shx, double shy, double time)
shapeID
- id of Shape to shearshx
- scaled x-coordinateshy
- scaled y-cooordinatetime
- Simulation timevoid setPaint(int shapeID, java.awt.Color c, double time)
shapeID
- id for Shape to paintc
- Color for the Shapetime
- Simulation timevoid setPaint(int shapeID, java.awt.Color c1, java.awt.Color c2, double time)
shapeID
- id for SHape to paintc1
- 1st Color for Shapec2
- 2nd Color for Shapetime
- Simulation time
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |