All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----sun.porting.graphicssystem.GraphicsSystem
CursorImage
object that corresponds to a standard
"system" cursor.
GraphicsSystem
object corresponding to the default graphics system.
FontMetrics
object for the given font.
Image
object with the given ImageProducer
.
Drawable
object corresponding to the default screen.
Drawable
objects corresponding to the available screens.
CursorImage
object.
Image
object for use as an offscreen
drawing area related to the given component.
Region
.
CursorImage
object.
public GraphicsSystem()
public static GraphicsSystem getDefaultGraphicsSystem()
GraphicsSystem
object corresponding to the default graphics system.
The default graphics system is determined by the value of the system property
sun.graphicssystem
.
GraphicsSystem
object for the default graphics system.
public abstract void registerEventHandler(EventHandler h) throws IllegalStateException
EventHandler
object.
public abstract FontPeer getFont(String name, int style)
java.awt.Font
. If an exact match
is not possible, returns the closest available match according to
a system-dependent algorithm.
PLAIN
, BOLD
, ITALIC
) of the font.
FontPeer
corresponding to the nearest matching font.
public abstract FontMetrics getFontMetrics(Font font)
FontMetrics
object for the given font.
FontMetrics
object.
public abstract Image getImage(ImageProducer producer)
Image
object with the given ImageProducer
.
The width, height and color model will all be determined later, when
the image data is decoded.
ImageProducer
object which will supply the image data
Image
, initialized from the given ImageProducer
object.
public abstract Image makeDrawableImage(Component c, int w, int h)
Image
object for use as an offscreen
drawing area related to the given component.
The desired width and height must be supplied.
Component
with which this image is associated
Image
into which graphics can be drawn.
public abstract Drawable[] getScreens()
Drawable
objects corresponding to the available screens.
Drawable
objects.
public Drawable getScreen()
Drawable
object corresponding to the default screen.
Drawable
object for the default screen.
public abstract Region makeRegion(int x, int y, int w, int h)
Region
.
Region
object.
public abstract void setCursorVisibility(boolean visible)
public abstract boolean isCursorVisible()
public abstract Point getCursorLocation()
public abstract CursorImage makeCursorImage(Image img, int hotX, int hotY)
CursorImage
object.
public abstract CursorImage getCursorImage(Cursor c)
CursorImage
object that corresponds to a standard
"system" cursor.
public abstract void setCursorImage(CursorImage image)
CursorImage
object.
public abstract Dimension getMaximumCursorSize()
Dimension
object containing the maximum cursor size, or
null if there is no maximum. While a return value of null implies that
there is no maximum, it does not guarantee that all sizes are
supported, because aspect ratio has not been taken into account.
public abstract Dimension getBestCursorSize(int width, int height)
public abstract int getMaximumCursorColors()
public abstract boolean prepareScrImage(Image image, int width, int height, ImageObserver observer)
If the values of the width and height arguments are both
-1
, this method prepares the image for rendering
on the default screen; otherwise, this method prepares an image
for rendering on the default screen at the specified width and height.
The image data is downloaded asynchronously in another thread, and an appropriately scaled screen representation of the image is generated.
This method is called by components prepareImage
methods.
Information on the flags returned by this method can be found
with the definition of the ImageObserver
interface.
-1
.
-1
.
ImageObserver
object to be notified as the
image is being prepared.
true
if the image has already been
fully prepared; false
otherwise.
public abstract int checkScrImage(Image image, int width, int height, ImageObserver observer)
If the values of the width and height arguments are both
-1
, this method returns the construction status of
a screen representation of the specified image in this toolkit.
Otherwise, this method returns the construction status of a
scaled representation of the image at the specified width
and height.
This method does not cause the image to begin loading.
An application must call prepareImage
to force
the loading of an image.
This method is called by the component's checkImage
methods.
Information on the flags returned by this method can be found
with the definition of the ImageObserver
interface.
-1
.
-1
.
ImageObserver
object to be
notified as the image is being prepared.
ImageObserver
flags for the
image data that is currently available.
public abstract int getScreenResolution()
public abstract void sync()
public abstract void beep()
All Packages Class Hierarchy This Package Previous Next Index