All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sun.porting.graphicssystem.Drawable

public interface Drawable
extends PhysicalDrawingSurface
The Drawable interface specifies operations that are available on all drawable surfaces (either a screen or an offscreen memory region).


Method Index

 o getColorModel()
Get the color model of this Drawable.
 o getGraphics(GeometryProvider)
Get a Graphics object associated with this Drawable.
 o getSize()
Get the size of this Drawable.

Methods

 o getSize
 public abstract Dimension getSize()
Get the size of this Drawable.

Returns:
The size in pixels, as a java.awt.Dimension object.
 o getColorModel
 public abstract ColorModel getColorModel()
Get the color model of this Drawable. May be null if the object's color model is indeterminate.

Returns:
The color model, as a java.awt.image.ColorModel object.
 o getGraphics
 public abstract Graphics getGraphics(GeometryProvider provider)
Get a Graphics object associated with this Drawable. The Graphics object must consult the GeometryProvider on every draw, in order to properly clip and translate. The GeometryProvider is what allows the underlying graphics library to properly draw into a window.

See Also:
GeometryProvider

All Packages  Class Hierarchy  This Package  Previous  Next  Index