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.
ClassDescriptionInstances of this store color information.Instances of this class manage operating system resources that specify the appearance of the on-screen pointer.This class is the abstract superclass of all device objects, such as the Display device and the Printer device.Implementers of
Drawablecan have a graphics context (GC) created for them, and then they can be drawn on by sending messages to their associated GC.Instances of this class manage operating system resources that define how text looks when it is displayed.Instances of this class describe operating system fonts.Instances of this class provide measurement information about fonts including ascent, descent, height, leading space between rows, and average character width.Class
GCis where all of the drawing capabilities that are supported by SWT are located.Instances of this class are descriptions of GCs in terms of unallocated platform-specific data fields.Instances of this class represent glyph metrics.Instances of this class are graphics which have been prepared for display on a specific device.Instances of this class are device-independent descriptions of images.Interface 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.Interface 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.Instances of this class are used to load images from, and save images to, a file or stream.Instances of this class are sent as a result of the incremental loading of image data.Classes which implement this interface provide methods that deal with the incremental loading of image data.
LineAttributesdefines a set of line attributes that can be modified in a GC.Instances of this class describe the color data used by an image.Instances of this class represent paths through the two-dimensional coordinate system.Instances of this class describe device-independent paths.Instances of this class represent patterns to use while drawing.Instances of this class represent places on the (x, y) coordinate plane.Instances of this class represent rectangular areas in an (x, y) coordinate system.Instances of this class represent areas of an x-y coordinate system that are aggregates of the areas covered by a number of polygons.This class is the abstract superclass of all graphics resource objects.Instances of this class are descriptions of colors in terms of the primary additive color model (red, green and blue).Instances of this class are descriptions of colors in terms of the primary additive color model (red, green, blue and alpha).
TextLayoutis a graphic object that represents styled text.
TextStyledefines a set of styles that can be applied to a range of text.Instances of this class represent transformation matrices for points expressed as (x, y) pairs of floating point numbers.