| java.lang.Object org.eclipse.swt.graphics.Resource
All known Subclasses: org.eclipse.swt.graphics.Image, org.eclipse.swt.graphics.Path, org.eclipse.swt.graphics.Cursor, org.eclipse.swt.graphics.Font, org.eclipse.swt.graphics.Transform, org.eclipse.swt.graphics.Pattern, org.eclipse.swt.graphics.Region, org.eclipse.swt.graphics.Color,
Resource | abstract public class Resource (Code) | | This class is the abstract superclass of all graphics resource objects.
Resources created by the application must be disposed.
IMPORTANT: This class is intended to be subclassed only
within the SWT implementation. However, it has not been marked
final to allow those outside of the SWT development team to implement
patched versions of the class in order to get around specific
limitations in advance of when those limitations can be addressed
by the team. Any class built using subclassing to access the internals
of this class will likely fail to compile or run between releases and
may be strongly platform specific. Subclassing should not be attempted
without an intimate and detailed understanding of the workings of the
hierarchy. No support is provided for user-written classes which are
implemented as subclasses of this class.
See Also: Resource.dispose See Also: Resource.isDisposed since: 3.1 |
Method Summary | |
abstract public void | dispose() Disposes of the operating system resources associated with
this resource. | public Device | getDevice() Returns the Device where this resource was
created. | abstract public boolean | isDisposed() Returns true if the resource has been disposed,
and false otherwise. |
device | Device device(Code) | | the device where this resource was created
|
dispose | abstract public void dispose()(Code) | | Disposes of the operating system resources associated with
this resource. Applications must dispose of all resources
which they allocate.
|
getDevice | public Device getDevice()(Code) | | Returns the Device where this resource was
created.
Device the device of the receiver since: 3.2 |
isDisposed | abstract public boolean isDisposed()(Code) | | Returns true if the resource has been disposed,
and false otherwise.
This method gets the dispose state for the resource.
When a resource has been disposed, it is an error to
invoke any other method using the resource.
true when the resource is disposed and false otherwise |
|
|