Generic Environment GUI Class Library

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

Constructor Summary
RotatedTintedImageDisplay(java.lang.String imageFilename, Direction dir)
          Constructs an object that knows how to display a rotatable tinted image.
 
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 RotatedImageDisplay
adjustForDirection
 
Methods inherited from class ScaledImageDisplay
draw, tint
 
Methods inherited from class ScaledDisplay
draw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 image
dir - direction object in image is facing
Method Detail

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

Generic Environment GUI Class Library

Copyright© 2003 Alyce Brady