Generic Environment GUI Class Library

Class ColorBlockDisplay

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

public class ColorBlockDisplay
extends ScaledDisplay

Environment-Based Applications:
A ColorBlockDisplay object displays a ColorBlock object in an environment.

Version:
1 November 2002

Constructor Summary
ColorBlockDisplay()
           
 
Method Summary
 void draw(Locatable obj, java.awt.Component comp, java.awt.Graphics2D g2)
          Draw the given object (color block).
 
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

ColorBlockDisplay

public ColorBlockDisplay()
Method Detail

draw

public void draw(Locatable obj,
                 java.awt.Component comp,
                 java.awt.Graphics2D g2)
Draw the given object (color block). (Precondition: obj is a ColorBlock object.)
Overrides:
draw in class ScaledDisplay
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