visual.statik
Interface TransformableContent

All Superinterfaces:
SimpleContent
All Known Subinterfaces:
Sprite, TransformableContent, TransformableContent
All Known Implementing Classes:
AbstractAggregateContent, AbstractSprite, AbstractTransformableContent, AggregateContent, AggregateContent, CompositeContent, CompositeContent, CompositeContent, Content, Content, DescribedSprite, RuleBasedSprite, SampledSprite, TweeningSprite

public interface TransformableContent
extends SimpleContent

The requirements of transformable static visual content

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Method Summary
 java.awt.geom.Rectangle2D getBounds2D(boolean ofTransformed)
          Returns a high precision bounding box of the Content either before or after it is transformed
 void setLocation(double x, double y)
          Set the location
 void setRotation(double angle, double x, double y)
          Set the angle of rotation
 void setScale(double xScale, double yScale)
          Set the scaling
 
Methods inherited from interface visual.statik.SimpleContent
render
 

Method Detail

setLocation

void setLocation(double x,
                 double y)
Set the location

Parameters:
x - The x position
y - The y position

setRotation

void setRotation(double angle,
                 double x,
                 double y)
Set the angle of rotation

Parameters:
angle - The rotation angle
x - The x-coordinate of the point to rotate around
y - The y-coordinate of the point to rotate around

setScale

void setScale(double xScale,
              double yScale)
Set the scaling

Parameters:
xScale - The scaling in the horizontal dimension
yScale - The scaling in the vertical dimension

getBounds2D

java.awt.geom.Rectangle2D getBounds2D(boolean ofTransformed)
Returns a high precision bounding box of the Content either before or after it is transformed

Parameters:
ofTransformed - true to get the BB of the transformed content
Returns:
The bounding box


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers