Top Description Interfaces Classes
[default module]

Package org.eclipse.swt.graphics


SWT graphics classes.

Package Specification

This 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

Modifier and TypeInterface and Description
public interface
Drawable

Implementers of Drawable can have a graphics context (GC) created for them, and then they can be drawn on by sending messages to their associated GC.

public interface
ImageDataProvider

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.

public interface
ImageFileNameProvider

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.

public interface
ImageLoaderListener

Classes which implement this interface provide methods that deal with the incremental loading of image data.

Class Summary

Modifier and TypeClass and Description
public class
Color

Instances of this store color information.

public class
Cursor

Instances of this class manage operating system resources that specify the appearance of the on-screen pointer.

public abstract class
Device

This class is the abstract superclass of all device objects, such as the Display device and the Printer device.

public class
public class
Font

Instances of this class manage operating system resources that define how text looks when it is displayed.

public class
FontData

Instances of this class describe operating system fonts.

public class
FontMetrics

Instances of this class provide measurement information about fonts including ascent, descent, height, leading space between rows, and average character width.

public class
GC

Class GC is where all of the drawing capabilities that are supported by SWT are located.

public class
GCData

Instances of this class are descriptions of GCs in terms of unallocated platform-specific data fields.

public class
GlyphMetrics

Instances of this class represent glyph metrics.

public class
Image

Instances of this class are graphics which have been prepared for display on a specific device.

public class
ImageData

Instances of this class are device-independent descriptions of images.

pack-priv class
ImageDataLoader

Internal class that separates ImageData from ImageLoader to allow removal of ImageLoader from the toolkit.

public class
ImageLoader

Instances of this class are used to load images from, and save images to, a file or stream.

public class
ImageLoaderEvent

Instances of this class are sent as a result of the incremental loading of image data.

public class
LineAttributes

LineAttributes defines a set of line attributes that can be modified in a GC.

public class
PaletteData

Instances of this class describe the color data used by an image.

public class
Path

Instances of this class represent paths through the two-dimensional coordinate system.

public class
PathData

Instances of this class describe device-independent paths.

public class
Pattern

Instances of this class represent patterns to use while drawing.

public class
Point

Instances of this class represent places on the (x, y) coordinate plane.

public class
Rectangle

Instances of this class represent rectangular areas in an (x, y) coordinate system.

public class
Region

Instances of this class represent areas of an x-y coordinate system that are aggregates of the areas covered by a number of polygons.

public abstract class
Resource

This class is the abstract superclass of all graphics resource objects.

public class
RGB

Instances of this class are descriptions of colors in terms of the primary additive color model (red, green and blue).

public class
RGBA

Instances of this class are descriptions of colors in terms of the primary additive color model (red, green, blue and alpha).

public class
TextLayout

TextLayout is a graphic object that represents styled text.

public class
TextStyle

TextStyle defines a set of styles that can be applied to a range of text.

public class
Transform

Instances of this class represent transformation matrices for points expressed as (x, y) pairs of floating point numbers.