The Physiologist's Friend Simulation API

ch.unizh.ini.friend.graphics
Interface SeparateTransforms

All Superinterfaces:
BufferedTransform, Cloneable, Transformable
All Known Implementing Classes:
ConcreteSeparateTransforms, SynchronizedSeparateTransforms

public interface SeparateTransforms
extends BufferedTransform, Cloneable

Provides the interface to keep a geometric object in its original state while buffering applied transformations separately.

Version:
$Revision: 1.6 $
Author:
Christof Marti
See Also:
ConcreteSeparateTransforms

Method Summary
 Transformable getGeometry()
          Returns the original geometric object.
 AffineTransform getRotation()
          Returns the buffered rotation.
 AffineTransform getScaling()
          Returns the buffered scaling.
 AffineTransform getTransformation()
          Returns the buffered generic transformation.
 Transformable getTransformed()
          Returns the transformed geometric object.
 AffineTransform getTranslation()
          Returns the buffered translation.
 Transformable rotateTo(float phi)
          Rotates the geometric object by the given angle around the origin.
 Transformable rotateTo(float phi, float x, float y)
          Rotates the geometric object by the given angle around the given point.
 Transformable scaleTo(float sx, float sy)
          Scales the geomtric object by the given values in x- and y-coordinates with the origin as center.
 Transformable scaleTo(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).
 void setGeometry(Transformable geometry)
          Sets the original geometric object.
 void setRotation(AffineTransform rotation)
          Sets the buffered rotation.
 void setScaling(AffineTransform scaling)
          Sets the buffered scaling.
 void setTransformation(AffineTransform transformation)
          Sets the buffered generic transformation.
 void setTranslation(AffineTransform translation)
          Sets the buffered translation.
 Transformable translateTo(float dx, float dy)
          Translates the geometric object by the given coordinates.
 
Methods inherited from interface ch.unizh.ini.friend.graphics.Transformable
apply, clone, rotate, rotate, scale, scale, translate
 

Method Detail

getGeometry

Transformable getGeometry()
Returns the original geometric object.

Returns:
The geometric object.

setGeometry

void setGeometry(Transformable geometry)
Sets the original geometric object.

Parameters:
geometry - The geometric object.

getTransformed

Transformable getTransformed()
Returns the transformed geometric object.

Specified by:
getTransformed in interface BufferedTransform
Returns:
The geometical object.

getTransformation

AffineTransform getTransformation()
Returns the buffered generic transformation.

Returns:
The generic transformation.

setTransformation

void setTransformation(AffineTransform transformation)
Sets the buffered generic transformation.

Parameters:
transformation - The generic transformation.

getScaling

AffineTransform getScaling()
Returns the buffered scaling.

Returns:
The scaling.

setScaling

void setScaling(AffineTransform scaling)
Sets the buffered scaling.

Parameters:
scaling - The scaling.

getRotation

AffineTransform getRotation()
Returns the buffered rotation.

Returns:
The rotation.

setRotation

void setRotation(AffineTransform rotation)
Sets the buffered rotation.

Parameters:
rotation - The rotation.

getTranslation

AffineTransform getTranslation()
Returns the buffered translation.

Returns:
The translation.

setTranslation

void setTranslation(AffineTransform translation)
Sets the buffered translation.

Parameters:
translation - The translation.

translateTo

Transformable translateTo(float dx,
                          float dy)
Translates the geometric object by the given coordinates. Overwrites the current translation.

Parameters:
dx - Translation in x-coordinates.
dy - Translation in y-coordinates.
Returns:
this for easy concatenation or a transformed clone.

rotateTo

Transformable rotateTo(float phi,
                       float x,
                       float y)
Rotates the geometric object by the given angle around the given point. Overwrites the current rotation.

Parameters:
phi - Rotation angle.
x - x-coordinate of the rotation center.
y - y-coordinate of the rotation center.
Returns:
this for easy concatenation or a transformed clone.

rotateTo

Transformable rotateTo(float phi)
Rotates the geometric object by the given angle around the origin. Overwrites the current rotation.

Parameters:
phi - Rotation angle.
Returns:
this for easy concatenation or a transformed clone.

scaleTo

Transformable scaleTo(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). Overwrites the current scaling.

Parameters:
sx - Scalar for x-coordinates.
sy - Scalar for y-coordinates.
x - x-coordinate of the center.
y - y-coordinate of the center.
Returns:
this for easy concatenation or a transformed clone.

scaleTo

Transformable scaleTo(float sx,
                      float sy)
Scales the geomtric object by the given values in x- and y-coordinates with the origin as center. Overwrites the current scaling.

Parameters:
sx - Scalar for x-coordinates.
sy - Scalar for y-coordinates.
Returns:
this for easy concatenation or a transformed clone.

http://www.ini.unizh.ch/~tobi/friend