Article View: borland.public.jbuilder.java.language
Article #17615Re: Does Image an abstract class ?
From: Eyal Hirsch
Date: Tue, 27 Oct 1998 00:00
Date: Tue, 27 Oct 1998 00:00
30 lines
1623 bytes
1623 bytes
Greg Hamer wrote in message <3634BC98.A7C6B290@inprise.com>...
>createImage is a factory method that creates a concrete instance of a class
>that extends java.awt.Image. Different VM's will create different concrete
>classes and may implement the methods differently, but you can rely that
all
>the methods defined in the Image class are at your disposal. For fun you
can
>print out the name of the actual class created with System.err.println("the
>image is of class " + im.getClass().toString());
>
Hi Greg,
I've followed your suggestion and indeed I've found out what the concrete
class is,
turns out it is : sun.awt.windows.WOffScreenImage. This class inherits
from WImage
and implements the DrawingSurface interface, WImage inherits from Image
so
I understand how createImage can return the Image class as it's return
type.
What I couldn't find is the actuall implementation of these classes,
neither
WOffScreenImage nor WImage extends Image's capabilities it merly
overrides some
methods with empty implementation. Where is the actuall code ???
TIA,
Eyal.
Technical Details
Message-ID:
<715cnn$bkq6@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<710672$3kh14@forums.borland.com> <3634BC98.A7C6B290@inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a88b34d4cbf6d3a0 X-Google-Attributes: gidf74b3,public From: "Eyal Hirsch" <eyalhir@netvision.net.il> Subject: Re: Does Image an abstract class ? Date: 1998/10/27 Message-ID: <715cnn$bkq6@forums.borland.com> X-Deja-AN: 405692127 References: <710672$3kh14@forums.borland.com> <3634BC98.A7C6B290@inprise.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: NONE Newsgroups: borland.public.jbuilder.java.language