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
-
VImage(byte[])
- Constructs a visual image from the specified byte data.
-
VImage(Image)
- Constructs a visual image with the specified image.
-
VImage(Image, boolean)
- Constructs a visual image with the specified image.
-
VImage(Image, URL)
- Constructs a visual image with the specified image that is
created from the specified url.
-
VImage(String)
- Constructs a visual image from the specified file name.
-
VImage(URL)
- Constructs a visual image from the specified url.
-
clone()
- Returns a clone of this visual image.
-
getFilename()
- Returns the file name the image is created from.
-
getImage()
- Returns the image in this visual image.
-
getURL()
- Returns the url the image is created from.
-
isResizable()
- Checks if the visual image is resizable.
-
paint(Graphics, Point)
- Paints the visual image at the specified location.
-
setSize(Dimension)
- Resizes the visual image to the specified dimension.
VImage
public VImage(Image image)
- Constructs a visual image with the specified image.
- Parameters:
- image - the image.
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.
VImage
public VImage(String filename)
- Constructs a visual image from the specified file name.
- Parameters:
- filename - the file name.
VImage
public VImage(URL url)
- Constructs a visual image from the specified url.
- Parameters:
- url - the url.
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.
VImage
public VImage(byte imagedata[])
- Constructs a visual image from the specified byte data.
- Parameters:
- imagedata - the byte data.
getImage
public Image getImage()
- Returns the image in this visual image.
- Returns:
- the image in this visual image.
getFilename
public String getFilename()
- Returns the file name the image is created from.
- Returns:
- the file name the image is created from.
getURL
public URL getURL()
- Returns the url the image is created from.
- Returns:
- the url the image is created from.
setSize
public void setSize(Dimension d)
- Resizes the visual image to the specified dimension.
- Overrides:
- setSize in class VObject
- See Also:
- setSize
isResizable
public boolean isResizable()
- Checks if the visual image is resizable.
- Overrides:
- isResizable in class VObject
- See Also:
- isResizable
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
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