Class RotatedTintedImageDisplay
java.lang.Object
|
+--ScaledDisplay
|
+--ScaledImageDisplay
|
+--RotatedImageDisplay
|
+--RotatedTintedImageDisplay
- All Implemented Interfaces:
- LocatableDisplay
- public class RotatedTintedImageDisplay
- extends RotatedImageDisplay
Environment-Based Applications:
A RotatedTintedImageDisplay
displays an object as a tinted image
in an environment. The orientation (direction) of the image depends
on the orientation (direction) of the object in the environment.
- Version:
- 1 November 2002
Method Summary |
void |
adjust(Locatable obj,
java.awt.Component comp,
java.awt.Graphics2D g2)
Adjusts the graphics system for drawing a rotated tinted image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotatedTintedImageDisplay
public RotatedTintedImageDisplay(java.lang.String imageFilename,
Direction dir)
- Constructs an object that knows how to display a rotatable
tinted image.
- Parameters:
imageFilename
- name of file containing imagedir
- direction object in image is facing
adjust
public void adjust(Locatable obj,
java.awt.Component comp,
java.awt.Graphics2D g2)
- Adjusts the graphics system for drawing a rotated tinted image.
(Precondition:
obj
has a direction
method.)
- Overrides:
adjust
in class RotatedImageDisplay
Copyright© 2003 Alyce Brady