    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

##

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

##

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

##

ImageCanvas

     public ImageCanvas(String imageFile,
                        Color bg,
                        boolean border)

  Create an ImageCanvas.

ImageCanvas

     public ImageCanvas(Image image)

##

getPreferredSize

     public Dimension getPreferredSize()

  Overrides:
    getPreferredSize in class Component

getPreferredSize

     public Dimension getPreferredSize(int rows)

getMinimumSize

     public Dimension getMinimumSize()

  Overrides:
    getMinimumSize in class Component

getMinimumSize

     public Dimension getMinimumSize(int rows)

paint

     public void paint(Graphics g)

  Overrides:
    paint in class Canvas

    All Packages  Class Hierarchy  This Package  Previous  Next  Index