All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VImage

java.lang.Object
   |
   +----jp.kyasu.graphics.VObject
           |
           +----jp.kyasu.graphics.VImage

public class VImage
extends VObject
The VImage class implements a visual image. This class provides the interface of the visual object to the image object.

Version:
16 Dec 1998
Author:
Kazuki YASUMATSU

Constructor Index

 o VImage(byte[])
Constructs a visual image from the specified byte data.
 o VImage(Image)
Constructs a visual image with the specified image.
 o VImage(Image, boolean)
Constructs a visual image with the specified image.
 o VImage(Image, URL)
Constructs a visual image with the specified image that is created from the specified url.
 o VImage(String)
Constructs a visual image from the specified file name.
 o VImage(URL)
Constructs a visual image from the specified url.

Method Index

 o clone()
Returns a clone of this visual image.
 o getFilename()
Returns the file name the image is created from.
 o getImage()
Returns the image in this visual image.
 o getURL()
Returns the url the image is created from.
 o isResizable()
Checks if the visual image is resizable.
 o paint(Graphics, Point)
Paints the visual image at the specified location.
 o setSize(Dimension)
Resizes the visual image to the specified dimension.

Constructors

 o VImage
 public VImage(Image image)
Constructs a visual image with the specified image.

Parameters:
image - the image.
 o VImage
 public VImage(Image image,
               boolean wait)
Constructs a visual image with the specified image.

Parameters:
image - the image.
wait - if true, waits the image to be loaded.
 o VImage
 public VImage(String filename)
Constructs a visual image from the specified file name.

Parameters:
filename - the file name.
 o VImage
 public VImage(URL url)
Constructs a visual image from the specified url.

Parameters:
url - the url.
 o VImage
 public VImage(Image image,
               URL url)
Constructs a visual image with the specified image that is created from the specified url.

Parameters:
image - the image.
url - the url of the image.
 o VImage
 public VImage(byte imagedata[])
Constructs a visual image from the specified byte data.

Parameters:
imagedata - the byte data.

Methods

 o getImage
 public Image getImage()
Returns the image in this visual image.

Returns:
the image in this visual image.
 o getFilename
 public String getFilename()
Returns the file name the image is created from.

Returns:
the file name the image is created from.
 o getURL
 public URL getURL()
Returns the url the image is created from.

Returns:
the url the image is created from.
 o setSize
 public void setSize(Dimension d)
Resizes the visual image to the specified dimension.

Overrides:
setSize in class VObject
See Also:
setSize
 o isResizable
 public boolean isResizable()
Checks if the visual image is resizable.

Overrides:
isResizable in class VObject
See Also:
isResizable
 o paint
 public void paint(Graphics g,
                   Point p)
Paints the visual image at the specified location. The subclasses should override this method.

Overrides:
paint in class VObject
See Also:
paint
 o clone
 public Object clone()
Returns a clone of this visual image.

Overrides:
clone in class VObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index