edu.kzoo.grid.display
Class RotatedTintedImageDisplay

java.lang.Object
  |
  +--edu.kzoo.grid.display.ScaledDisplay
        |
        +--edu.kzoo.grid.display.ScaledImageDisplay
              |
              +--edu.kzoo.grid.display.RotatedImageDisplay
                    |
                    +--edu.kzoo.grid.display.RotatedTintedImageDisplay
All Implemented Interfaces:
GridObjectDisplay

public class RotatedTintedImageDisplay
extends RotatedImageDisplay

Grid Display Package:
A RotatedTintedImageDisplay displays an object as a tinted image in a grid. The orientation (direction) of the image depends on the orientation (direction) of the object in the grid.

Version:
13 December 2003
Author:
Alyce Brady

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(GridObject obj, java.awt.Component comp, java.awt.Graphics2D g2)
          Adjusts the graphics system for drawing a rotated tinted image.
 
Methods inherited from class edu.kzoo.grid.display.RotatedImageDisplay
adjustForDirection
 
Methods inherited from class edu.kzoo.grid.display.ScaledImageDisplay
draw, tint
 
Methods inherited from class edu.kzoo.grid.display.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(GridObject 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