SWT graphics classes.
Package SpecificationThis package provides the classes which implement points, rectangles, regions, colors, cursors, fonts, graphics contexts (that is,
GCs) where most of the primitive drawing operations are implemented, and images including both the code for displaying them and the public API for loading/saving them.
Interface Summary Interface Description DrawableImplementers of
Drawablecan have a graphics context (GC) created for them, and then they can be drawn on by sending messages to their associated GC.
ImageDataProviderInterface to provide a callback mechanism to get information about images when the application is moved from a low DPI monitor to a high DPI monitor. ImageFileNameProviderInterface to provide a callback mechanism to get information about images when the application is moved from a low DPI monitor to a high DPI monitor. ImageLoaderListenerClasses which implement this interface provide methods that deal with the incremental loading of image data.
Class Summary Class Description ColorInstances of this store color information. CursorInstances of this class manage operating system resources that specify the appearance of the on-screen pointer. DeviceThis class is the abstract superclass of all device objects, such as the Display device and the Printer device. DeviceData FontInstances of this class manage operating system resources that define how text looks when it is displayed. FontDataInstances of this class describe operating system fonts. FontMetricsInstances of this class provide measurement information about fonts including ascent, descent, height, leading space between rows, and average character width. GCClass
GCis where all of the drawing capabilities that are supported by SWT are located.
GCDataInstances of this class are descriptions of GCs in terms of unallocated platform-specific data fields. GlyphMetricsInstances of this class represent glyph metrics. ImageInstances of this class are graphics which have been prepared for display on a specific device. ImageDataInstances of this class are device-independent descriptions of images. ImageLoaderInstances of this class are used to load images from, and save images to, a file or stream. ImageLoaderEventInstances of this class are sent as a result of the incremental loading of image data. LineAttributes
LineAttributesdefines a set of line attributes that can be modified in a GC.
PaletteDataInstances of this class describe the color data used by an image. PathInstances of this class represent paths through the two-dimensional coordinate system. PathDataInstances of this class describe device-independent paths. PatternInstances of this class represent patterns to use while drawing. PointInstances of this class represent places on the (x, y) coordinate plane. RectangleInstances of this class represent rectangular areas in an (x, y) coordinate system. RegionInstances of this class represent areas of an x-y coordinate system that are aggregates of the areas covered by a number of polygons. ResourceThis class is the abstract superclass of all graphics resource objects. RGBInstances of this class are descriptions of colors in terms of the primary additive color model (red, green and blue). RGBAInstances of this class are descriptions of colors in terms of the primary additive color model (red, green, blue and alpha). TextLayout
TextLayoutis a graphic object that represents styled text.
TextStyledefines a set of styles that can be applied to a range of text.
TransformInstances of this class represent transformation matrices for points expressed as (x, y) pairs of floating point numbers.