Generic Environment GUI Class Library

Class TextCellDisplay

java.lang.Object
  |
  +--ScaledDisplay
        |
        +--DefaultDisplay
              |
              +--TextCellDisplay
All Implemented Interfaces:
LocatableDisplay

public class TextCellDisplay
extends DefaultDisplay

Environment-Based Applications:
A TextCellDisplay object displays a TextCell object in an environment.

Version:
1 January 2003

Constructor Summary
TextCellDisplay()
           
 
Method Summary
 void draw(Locatable obj, java.awt.Component comp, java.awt.Graphics2D g2)
          Draws the given object.
 
Methods inherited from class DefaultDisplay
paintCenteredText
 
Methods inherited from class ScaledDisplay
adjust, draw
 
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

draw

public void draw(Locatable obj,
                 java.awt.Component comp,
                 java.awt.Graphics2D g2)
Draws the given object. This implementation draws a string using the Java 2D Graphics API. (Precondition: obj is a TextCell object.)
Overrides:
draw in class DefaultDisplay
Parameters:
obj - object we want to draw
comp - component on which to draw
g2 - drawing surface

Generic Environment GUI Class Library

Copyright© 2003 Alyce Brady