public class DefaultDisplay extends TextDisplay
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.DisplayMap| Constructor and Description |
|---|
DefaultDisplay() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getText(GridObject obj)
Gets the text string to draw.
|
draw, getTextColor, invokeAccessorMethod, paintCenteredTextaddDecorator, adjust, draw, removeDecoratorprotected java.lang.String getText(GridObject obj)
getText in class TextDisplay