public float getScaley() {
return scaley;
}
public Shape getShape() {
Shape b = bound;
float sx = getX();
float sy = getY();
if (scalex != 1 || scaley != 1) {
b = new Rectangle(sx, sy, bound.getWidth() * scalex, bound
.getHeight()
* scaley);
}
if (rotation > 0.1f || rotation < -0.1f) {
if (cacheRotation == rotation && cacheShape != null && sx == cacheX
&& sy == cacheY) {
return cacheShape;
}
float angle = (float) Math.toRadians(rotation);
Shape s = b.transform(Transform.createRotateTransform(angle,
getCenterX(), getCenterY()));
cacheShape = s;
cacheRotation = rotation;
cacheX = getX();
cacheY = getY();