Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.swt.graphics.custom.* (2)

org.eclipse.swt.graphics: Javadoc index of package org.eclipse.swt.graphics.


Package Samples:

org.eclipse.swt.graphics.custom

Classes:

Image: Instances of this class are graphics which have been prepared for display on a specific device. That is, they are ready to paint using methods such as GC.drawImage() and display on widgets with, for example, Button.setImage() . If loaded from a file format that supports it, an Image may have transparency, meaning that certain pixels are specified as being transparent when drawn. Examples of file formats that support transparency are GIF and PNG. There are two primary ways to use Images . The first is to load a graphic file from disk and create an Image from it. This is done using an Image constructor, ...
PaletteData: Instances of this class describe the color data used by an image. Depending on the depth of the image, the PaletteData can take one of two forms, indicated by the isDirect field: isDirect is false If isDirect is false , this palette is an indexed palette which maps pixel values to RGBs. The actual RGB values may be retrieved by using the getRGBs() method. isDirect is true If isDirect is true , this palette is a direct color palette. Instead of containing RGB values, it contains red, green and blue mask and shift information which indicates how the color components may be extracted from a given ...
FontData: Instances of this class describe operating system fonts. For platform-independent behaviour, use the get and set methods corresponding to the following properties: height the height of the font in points name the face name of the font, which may include the foundry style A bitwise combination of NORMAL, ITALIC and BOLD If extra, platform-dependent functionality is required: On Windows , the data member of the FontData corresponds to a Windows LOGFONT structure whose fields may be retrieved and modified. On X , the fields of the FontData correspond to the entries in the font's XLFD name and may ...
Cursor: Instances of this class manage operating system resources that specify the appearance of the on-screen pointer. To create a cursor you specify the device and either a simple cursor style describing one of the standard operating system provided cursors or the image and mask data for the desired appearance. Application code must explicitly invoke the Cursor.dispose() method to release the operating system resources managed by each instance when those instances are no longer required. Styles: CURSOR_ARROW, CURSOR_WAIT, CURSOR_CROSS, CURSOR_APPSTARTING, CURSOR_HELP, CURSOR_SIZEALL, CURSOR_SIZENESW, ...
GC: Class GC is where all of the drawing capabilities that are supported by SWT are located. Instances are used to draw on either an Image , a Control , or directly on a Display . Styles: LEFT_TO_RIGHT, RIGHT_TO_LEFT The SWT drawing coordinate system is the two-dimensional space with the origin (0,0) at the top left corner of the drawing area and with (x,y) values increasing to the right and downward respectively. Application code must explicitly invoke the GC.dispose() method to release the operating system resources managed by each instance when those instances are no longer required. This is particularly ...
Rectangle: Instances of this class represent rectangular areas in an (x, y) coordinate system. The top left corner of the rectangle is specified by its x and y values, and the extent of the rectangle is specified by its width and height. The coordinate space for rectangles and points is considered to have increasing values downward and to the right from its origin making this the normal, computer graphics oriented notion of (x, y) coordinates rather than the strict mathematical one. The hashCode() method in this class uses the values of the public fields to compute the hash value. When storing instances of ...
DirtyRectangle: Custom version of org.eclipse.swt.graphics.Rectangle. Added method add(x,y,w,h) to avoid creating intermediate Rectangle objects. Instances of this class represent rectangular areas in an (x, y) coordinate system. The top left corner of the rectangle is specified by its x and y values, and the extent of the rectangle is specified by its width and height. The coordinate space for rectangles and points is considered to have increasing values downward and to the right from its origin making this the normal, computer graphics oriented notion of (x, y) coordinates rather than the strict mathematical ...
RGB: Instances of this class are descriptions of colors in terms of the primary additive color model (red, green and blue). A color may be described in terms of the relative intensities of these three primary colors. The brightness of each color is specified by a value in the range 0 to 255, where 0 indicates no color (blackness) and 255 indicates maximum intensity. The hashCode() method in this class uses the values of the public fields to compute the hash value. When storing instances of the class in hashed collections, do not modify these fields after the object has been inserted. Application code ...
Point: Instances of this class represent places on the (x, y) coordinate plane. The coordinate space for rectangles and points is considered to have increasing values downward and to the right from its origin making this the normal, computer graphics oriented notion of (x, y) coordinates rather than the strict mathematical one. The hashCode() method in this class uses the values of the public fields to compute the hash value. When storing instances of the class in hashed collections, do not modify these fields after the object has been inserted. Application code does not need to explicitly release the ...
TextStyle: TextStyle defines a set of styles that can be applied to a range of text. The hashCode() method in this class uses the values of the public fields to compute the hash value. When storing instances of the class in hashed collections, do not modify these fields after the object has been inserted. Application code does not need to explicitly release the resources managed by each instance when those instances are no longer required, and thus no dispose() method is provided.
ImageLoader: Instances of this class are used to load images from, and save images to, a file or stream. Currently supported image formats are: BMP (Windows Bitmap) ICO (Windows Icon) JPEG GIF PNG ImageLoaders can be used to: load/save single images in all formats load/save multiple images (GIF/ICO) load/save animated GIF images load interlaced GIF/PNG images load progressive JPEG images
TextLayout: TextLayout is a graphic object that represents styled text. Instances of this class provide support for drawing, cursor navigation, hit testing, text wrapping, alignment, tab expansion line breaking, etc. These are aspects required for rendering internationalized text. Application code must explicitly invoke the TextLayout#dispose() method to release the operating system resources managed by each instance when those instances are no longer required.
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. SWT images, and device objects such as the Display device and the Printer device, are drawables. IMPORTANT: This class is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It should never be referenced from application code.
Font: Instances of this class manage operating system resources that define how text looks when it is displayed. Fonts may be constructed by providing a device and either name, size and style information or a FontData object which encapsulates this data. Application code must explicitly invoke the Font.dispose() method to release the operating system resources managed by each instance when those instances are no longer required.
Color: Instances of this class manage the operating system resources that implement SWT's RGB color model. To create a color you can either specify the individual color components as integers in the range 0 to 255 or provide an instance of an RGB . Application code must explicitly invoke the Color.dispose() method to release the operating system resources managed by each instance when those instances are no longer required.
ImageLoaderEvent: Instances of this class are sent as a result of the incremental loading of image data. Notes: The number of events which will be sent when loading images is not constant. It varies by image type, and for JPEG images it varies from image to image. For image sources which contain multiple images, the endOfImage flag in the event will be set to true after each individual image is loaded.
ImageLoaderListener: Classes which implement this interface provide methods that deal with the incremental loading of image data. After creating an instance of a class that implements this interface it can be added to an image loader using the addImageLoaderListener method and removed using the removeImageLoaderListener method. When image data is either partially or completely loaded, this method will be invoked.
ImageData: Instances of this class are device-independent descriptions of images. They are typically used as an intermediate format between loading from or writing to streams and creating an Image . Note that the public fields x , y , disposalMethod and delayTime are typically only used when the image is in a set of images used for animation.
GCData: Instances of this class are descriptions of GCs in terms of unallocated platform-specific data fields. IMPORTANT: This class is not part of the public API for SWT. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms, and should never be called from application code.
Region: Instances of this class represent areas of an x-y coordinate system that are aggregates of the areas covered by a number of rectangles. Application code must explicitly invoke the Region.dispose() method to release the operating system resources managed by each instance when those instances are no longer required.
FontMetrics: Instances of this class provide measurement information about fonts including ascent, descent, height, leading space between rows, and average character width. FontMetrics are obtained from GC s using the getFontMetrics() method.
Device: This class is the abstract superclass of all device objects, such as the Display device and the Printer device. Devices can have a graphics context (GC) created for them, and they can be drawn on by sending messages to the associated GC.
Dimension: Simple wrapper of a width and height dimension.
DeviceData

Home | Contact Us | Privacy Policy | Terms of Service