sun.porting.graphicssystem
Interface Drawable

All Superinterfaces:
sun.awt.PhysicalDrawingSurface

public interface Drawable
extends sun.awt.PhysicalDrawingSurface

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


Method Summary
 java.awt.image.ColorModel getColorModel()
          Get the color model of this Drawable.
 Graphics getGraphics(GeometryProvider provider)
          Get a Graphics object associated with this Drawable.
 java.awt.Dimension getSize()
          Get the size of this Drawable.
 

Method Detail

getSize

java.awt.Dimension getSize()
Get the size of this Drawable.

Returns:
The size in pixels, as a java.awt.Dimension object.

getColorModel

java.awt.image.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.

getGraphics

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