All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JBMSTours.PictureFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----JBMSTours.PictureFrame

public class PictureFrame
extends Frame
Look at the Source.

The frame for the picture, which loads the image and places it onto the canvas. Uses minimal AWT code.. Used by Cloudview to display Picture objects.


Constructor Index

 o PictureFrame(String, byte[])
Constructor.
 o PictureFrame(String, String)
Takes the name and a URL.

Method Index

 o paint(Graphics)
Paint the picture.
 o trackSizeAndShow()
A utility method.
 o update(Graphics)
Update it.

Constructors

 o PictureFrame
 public PictureFrame(String name,
                     byte im[]) throws Exception
Constructor. Takes a name and byte array.

Throws: Exception
if there's a problem creating the PictureFrame.
 o PictureFrame
 public PictureFrame(String name,
                     String url) throws Exception
Takes the name and a URL.

Throws: Exception
if there's a problem creating the PictureFrame.

Methods

 o trackSizeAndShow
 public void trackSizeAndShow() throws Exception
A utility method.

Throws: Exception
if there's a problem creating the PictureFrame.
 o paint
 public void paint(Graphics g)
Paint the picture.

Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Update it.

Overrides:
update in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index