com.partnersoft.gui
Class ImageRotation

java.lang.Object
  extended by com.partnersoft.gui.ImageRotation

public class ImageRotation
extends java.lang.Object

A rotated image, generally used for icons. Handles the various issues of enlarging the canvas width and heigth, changing the center point offsets, etc. Many properties are public for speed. Don't abuse the privilege.

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Field Summary
 int height
           
 java.awt.Image image
           
 int offsetX
           
 int offsetY
           
 float rotation
           
 int width
           
 
Constructor Summary
ImageRotation(java.awt.Image unrotatedImage, float rotation)
          Create a new ImageRotation with the given base image and rotation (in radians).
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image

public java.awt.Image image

offsetX

public int offsetX

offsetY

public int offsetY

width

public int width

height

public int height

rotation

public float rotation
Constructor Detail

ImageRotation

public ImageRotation(java.awt.Image unrotatedImage,
                     float rotation)
Create a new ImageRotation with the given base image and rotation (in radians).