graphics
Interface IContainer

All Superinterfaces:
ImageObserver
All Known Implementing Classes:
CompoundGraphic, DrawingCanvas

public interface IContainer
extends ImageObserver

The interface that defines the capabilties for an object that can contain Graphics

Author:
Michael Kozelsky Created on: Jul 29, 2006 IContainer.java

Field Summary
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Method Summary
 void add(IGraphic g)
          Adds a Graphic onto this Container
 Dimension getDimension()
          Returns the Dimension of this Container
 void remove(IGraphic g)
          Removes a Graphic from this Container
 void repaint()
          Forces a repaint of all the Graphics on this Container
 void repaint(Rectangle bounds)
          Forces a repaint of all the things that are on this Container in the given bounds
 
Methods inherited from interface java.awt.image.ImageObserver
imageUpdate
 

Method Detail

add

void add(IGraphic g)
Adds a Graphic onto this Container

Parameters:
g - The Graphic to put on/in this Container

remove

void remove(IGraphic g)
Removes a Graphic from this Container

Parameters:
g - The Graphic to remove from this Container

getDimension

Dimension getDimension()
Returns the Dimension of this Container

Returns:
the Dimension

repaint

void repaint()
Forces a repaint of all the Graphics on this Container


repaint

void repaint(Rectangle bounds)
Forces a repaint of all the things that are on this Container in the given bounds

Parameters:
bounds -