edu.kzoo.grid.display
Class DefaultDisplay

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

public class DefaultDisplay
extends TextDisplay

Grid Display Package:
A DefaultDisplay draws a centered question-mark. A DefaultDisplay object is used to display any grid object that doesn't have a specialized display object. The association between a particular GridObject subclass and its display object is handled in the DisplayMap class.

Version:
15 September 2004
Author:
Alyce Brady
See Also:
DisplayMap

Constructor Summary
DefaultDisplay()
           
 
Method Summary
protected  java.lang.String getText(GridObject obj)
          Gets the text string to draw.
 
Methods inherited from class edu.kzoo.grid.display.TextDisplay
draw, getTextColor, 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

DefaultDisplay

public DefaultDisplay()
Method Detail

getText

protected java.lang.String getText(GridObject obj)
Gets the text string to draw.

Overrides:
getText in class TextDisplay