All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.doit.muffin.ImageCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----org.doit.muffin.ImageCanvas

public class ImageCanvas
extends Canvas
Display a fixed size image.

Author:
Mark Boyns

Constructor Index

 o ImageCanvas(Image)
 o ImageCanvas(String, Color, boolean)
Create an ImageCanvas.

Method Index

 o getMinimumSize()
 o getMinimumSize(int)
 o getPreferredSize()
 o getPreferredSize(int)
 o paint(Graphics)

Constructors

 o ImageCanvas
 public ImageCanvas(String imageFile,
                    Color bg,
                    boolean border)
Create an ImageCanvas.

 o ImageCanvas
 public ImageCanvas(Image image)

Methods

 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o getPreferredSize
 public Dimension getPreferredSize(int rows)
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize(int rows)
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index