public class SWTUtil
extends java.lang.Object
| Constructor and Description |
|---|
SWTUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.swt.graphics.FontData |
copy(org.eclipse.swt.graphics.FontData fontData)
Returns a defensive copy of the passed in FontData.
|
static org.eclipse.swt.graphics.RGB |
copy(org.eclipse.swt.graphics.RGB rgb)
Returns a defensive copy of the passed in RGB.
|
static org.eclipse.swt.graphics.RGB |
deriveRGB(int rgb)
Returns an RGB representing the color described by the argument.
|
static boolean |
equal(org.eclipse.swt.graphics.ImageData left,
org.eclipse.swt.graphics.ImageData right)
Returns whether the ImageData arguments are equivalent.
|
static boolean |
equal(org.eclipse.swt.graphics.PaletteData left,
org.eclipse.swt.graphics.PaletteData right)
Returns whether the PaletteData arguments are equivalent.
|
static int |
hashCode(org.eclipse.swt.graphics.ImageData data)
Returns a hash code for the ImageData
|
static int |
hashCode(org.eclipse.swt.graphics.PaletteData data)
Returns a hash code for the PaletteData.
|
public static org.eclipse.swt.graphics.FontData copy(org.eclipse.swt.graphics.FontData fontData)
fontData - the FontData to copy. May be null.public static org.eclipse.swt.graphics.RGB copy(org.eclipse.swt.graphics.RGB rgb)
rgb - the RGB to copy. May be null.public static org.eclipse.swt.graphics.RGB deriveRGB(int rgb)
Sample colors:
0xFFFFFF: white
0x000000: black
0xFF0000: red
0x00FF00: green
0x0000FF: blue
rgb - an integer containing the red, green and blue components in
the 0xFF0000, 0x00FF00, and 0x0000FF positions, respectively.public static boolean equal(org.eclipse.swt.graphics.PaletteData left,
org.eclipse.swt.graphics.PaletteData right)
left - the left PaletteDataright - the right PaletteDatapublic static int hashCode(org.eclipse.swt.graphics.PaletteData data)
data - the PaletteDatapublic static boolean equal(org.eclipse.swt.graphics.ImageData left,
org.eclipse.swt.graphics.ImageData right)
left - the left ImageDataright - the right ImageDatapublic static int hashCode(org.eclipse.swt.graphics.ImageData data)
data - the ImageData