|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transformable
Interface a transformable geometric object might implement.
Whether the methods return this
or a clone is
up to the concrete implementation.
AbstractTransformable
Method Summary | |
---|---|
Transformable |
apply(AffineTransform at)
Applies the given transformation to the geometric object. |
Object |
clone()
Clones this geometric object. |
Transformable |
rotate(float phi)
Rotates the geometric object by the given angle around the origin. |
Transformable |
rotate(float phi,
float x,
float y)
Rotates the geometric object by the given angle around the given point. |
Transformable |
scale(float sx,
float sy)
Scales the geomtric object by the given values in x- and y-coordinates with the origin as center. |
Transformable |
scale(float sx,
float sy,
float x,
float y)
Scales the geomtric object by the given values in x- and y-coordinates with the given center (x, y). |
Transformable |
translate(float dx,
float dy)
Translates the geometric object by the given coordinates. |
Method Detail |
---|
Transformable translate(float dx, float dy)
dx
- Translation in x-coordinates.dy
- Translation in y-coordinates.
Transformable rotate(float phi, float x, float y)
phi
- Rotation angle.x
- x-coordinate of the rotation center.y
- y-coordinate of the rotation center.
Transformable rotate(float phi)
phi
- Rotation angle.
Transformable scale(float sx, float sy, float x, float y)
sx
- Scalar for x-coordinates.sy
- Scalar for y-coordinates.x
- x-coordinate of the center.y
- y-coordinate of the center.
Transformable scale(float sx, float sy)
sx
- Scalar for x-coordinates.sy
- Scalar for y-coordinates.
Transformable apply(AffineTransform at)
at
- The affine transformation to apply.
Object clone()
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |