|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.graphics.AbstractTransformable
public abstract class AbstractTransformable
Provides default implementations for all methods of Transformable
except apply
on which all other methods depend.
Constructor Summary | |
---|---|
AbstractTransformable()
|
Method Summary | |
---|---|
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 geometric 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 geometric 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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ch.unizh.ini.friend.graphics.Transformable |
---|
apply |
Constructor Detail |
---|
public AbstractTransformable()
Method Detail |
---|
public Transformable rotate(float phi)
rotate
in interface Transformable
phi
- Rotation angle.
public Transformable rotate(float phi, float x, float y)
rotate
in interface Transformable
phi
- Rotation angle.x
- x-coordinate of the rotation center.y
- y-coordinate of the rotation center.
public Transformable scale(float sx, float sy)
scale
in interface Transformable
sx
- Scalar for x-coordinates.sy
- Scalar for y-coordinates.
public Transformable scale(float sx, float sy, float x, float y)
scale
in interface Transformable
sx
- Scalar for x-coordinates.sy
- Scalar for y-coordinates.x
- x-coordinate of the center.y
- y-coordinate of the center.
public Transformable translate(float dx, float dy)
translate
in interface Transformable
dx
- Translation in x-coordinates.dy
- Translation in y-coordinates.
public Object clone()
clone
in interface Transformable
clone
in class Object
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |