edu.kzoo.grid.display
Class TextCellDisplay

java.lang.Object
  |
  +--edu.kzoo.grid.display.ScaledDisplay
        |
        +--edu.kzoo.grid.display.TextDisplay
              |
              +--edu.kzoo.grid.display.TextCellDisplay
All Implemented Interfaces:
GridObjectDisplay

public class TextCellDisplay
extends TextDisplay

Grid Display Package:
A TextCellDisplay object displays a TextCell object (or any object with text and color methods) in a grid.

Version:
15 September 2004
Author:
Alyce Brady

Constructor Summary
TextCellDisplay()
           
 
Method Summary
protected  java.lang.String getText(GridObject obj)
          Gets the text string to draw.
protected  java.awt.Color getTextColor(GridObject obj)
          Gets the text color.
 
Methods inherited from class edu.kzoo.grid.display.TextDisplay
draw, invokeAccessorMethod, paintCenteredText
 
Methods inherited from class edu.kzoo.grid.display.ScaledDisplay
addDecorator, adjust, draw, removeDecorator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextCellDisplay

public TextCellDisplay()
Method Detail

getText

protected java.lang.String getText(GridObject obj)
Gets the text string to draw. (Precondition: obj has a text method.)

Overrides:
getText in class TextDisplay

getTextColor

protected java.awt.Color getTextColor(GridObject obj)
Gets the text color. (Precondition: obj has a color method.)

Overrides:
getTextColor in class TextDisplay