Uses of Class
org.eclipse.swt.graphics.Device
Package
Description
Provides support for managing resources such as SWT
fonts and images.
SWT graphics classes.
SWT internal classes
SWT Printing support classes.
SWT widget public API classes.
-
Uses of Device in org.eclipse.jface.resource
Modifier and TypeMethodDescriptionDeviceResourceManager.getDevice()
LazyResourceManager.getDevice()
LocalResourceManager.getDevice()
abstract Device
ResourceManager.getDevice()
Returns the Device for which this ResourceManager will create resourcesModifier and TypeMethodDescriptionabstract Color
ColorDescriptor.createColor
(Device device) Returns the Color described by this descriptor.abstract Font
FontDescriptor.createFont
(Device device) Creates the Font described by this descriptor.static ColorDescriptor
ColorDescriptor.createFrom
(Color toCreate, Device originalDevice) Deprecated.static FontDescriptor
FontDescriptor.createFrom
(Font font, Device originalDevice) Deprecated.static ImageDescriptor
ImageDescriptor.createFromImage
(Image img, Device theDevice) Deprecated.ImageDescriptor.createImage
(boolean returnMissingImageOnError, Device device) Creates and returns a new SWT image for this image descriptor.ImageDescriptor.createImage
(Device device) Creates and returns a new SWT image for this image descriptor.final Object
ColorDescriptor.createResource
(Device device) abstract Object
DeviceResourceDescriptor.createResource
(Device device) Creates the resource described by this descriptorfinal Object
FontDescriptor.createResource
(Device device) ImageDescriptor.createResource
(Device device) ModifierConstructorDescriptionDeviceResourceManager
(Device device) Creates a new registry for the given device. -
Uses of Device in org.eclipse.swt.graphics
Modifier and TypeMethodDescriptionColor.getDevice()
Returns theDevice
where this resource was created.Resource.getDevice()
Returns theDevice
where this resource was created.Modifier and TypeMethodDescriptionstatic Color
Invokes platform specific functionality to allocate a new color.static Color
Invokes platform specific functionality to allocate a new color.static Cursor
Invokes platform specific functionality to allocate a new cursor.static Font
Invokes platform specific functionality to allocate a new font.static Font
Invokes platform specific functionality to allocate a new font.static Font
Invokes platform specific private constructor to allocate a new font.static Image
Invokes platform specific functionality to allocate a new image.ModifierConstructorDescriptionConstructs a new instance of this class given a device and the desired red, green and blue values expressed as ints in the range 0 to 255 (where 0 is black and 255 is full brightness).Constructs a new instance of this class given a device and the desired red, green, blue & alpha values expressed as ints in the range 0 to 255 (where 0 is black and 255 is full brightness).Constructs a new instance of this class given a device and anRGB
describing the desired red, green and blue values.Constructs a new instance of this class given a device and anRGBA
describing the desired red, green, blue & alpha values.Constructs a new instance of this class given a device, anRGB
describing the desired red, green and blue values, alpha specifying the level of transparency.Constructs a new cursor given a device and a style constant describing the desired cursor appearance.Constructs a new cursor given a device, image data describing the desired cursor appearance, and the x and y coordinates of the hotspot (that is, the point within the area covered by the cursor which is considered to be where the on-screen pointer is "pointing").Constructs a new cursor given a device, image and mask data describing the desired cursor appearance, and the x and y coordinates of the hotspot (that is, the point within the area covered by the cursor which is considered to be where the on-screen pointer is "pointing").Constructs a new font given a device, a font name, the height of the desired font in points, and a font style.Constructs a new font given a device and font data which describes the desired font's appearance.Constructs a new font given a device and an array of font data which describes the desired font's appearance.Constructs an empty instance of this class with the specified width and height.Image
(Device device, InputStream stream) Constructs an instance of this class by loading its representation from the specified input stream.Constructs an instance of this class by loading its representation from the file with the specified name.Constructs an instance of this class from the givenImageData
.Image
(Device device, ImageDataProvider imageDataProvider) Constructs an instance of this class by loading its representation from the ImageData retrieved from the ImageDataProvider.Constructs an instance of this class, whose type isSWT.ICON
, from the two givenImageData
objects.Image
(Device device, ImageFileNameProvider imageFileNameProvider) Constructs an instance of this class by loading its representation from the file retrieved from the ImageFileNameProvider.Constructs a new instance of this class based on the provided image, with an appearance that varies depending on the value of the flag.Constructs an empty instance of this class with the width and height of the specified rectangle.Constructs a new empty Path.Constructs a new Path with the specified PathData.Constructs a new Path that is a copy ofpath
.Pattern
(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) Constructs a new Pattern that represents a linear, two color gradient.Constructs a new Pattern that represents a linear, two color gradient.Constructs a new Pattern given an image.Constructs a new empty region.TextLayout
(Device device) Constructs a new instance of this class on the given device.Constructs a new identity Transform.Constructs a new Transform given an array of elements that represent the matrix that describes the transformation.Constructs a new Transform given all of the elements that represent the matrix that describes the transformation. -
Uses of Device in org.eclipse.swt.internal
Modifier and TypeMethodDescriptionstatic ImageData
DPIUtil.autoScaleDown
(Device device, ImageData imageData) Auto-scale down ImageDatastatic ImageData
DPIUtil.autoScaleImageData
(Device device, ImageData imageData, int imageDataZoomFactor) Auto-scale ImageData to device zoom that are at given zoom factor.static ImageData
DPIUtil.autoScaleUp
(Device device, ImageData imageData) Auto-scale up ImageData to device zoom that is at 100%.static ImageData
DPIUtil.autoScaleUp
(Device device, DPIUtil.ElementAtZoom<ImageData> elementAtZoom) static void
SWTFontProvider.disposeFontRegistry
(Device device) static Font
static Font
SWTFontProvider.getSystemFont
(Device device, int zoom) static ImageData
DPIUtil.scaleImageData
(Device device, ImageData imageData, int targetZoom, int currentZoom) Auto-scale image with ImageDatastatic ImageData
DPIUtil.scaleImageData
(Device device, DPIUtil.ElementAtZoom<ImageData> elementAtZoom, int targetZoom) ModifierConstructorDescriptionAutoScaleImageDataProvider
(Device device, ImageData data, int zoom) -
Uses of Device in org.eclipse.swt.printing
Modifier and TypeClassDescriptionfinal class
Instances of this class are used to print to a printer. -
Uses of Device in org.eclipse.swt.widgets
Modifier and TypeClassDescriptionclass
Instances of this class are responsible for managing the connection between SWT and the underlying operating system.
ColorDescriptor.createFrom(Color)