public class ResourcePool
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ResourcePool |
forDevice(org.eclipse.swt.graphics.Device device)
Returns a SharedGraphics which creates resources on the given device.
|
org.eclipse.swt.graphics.Color |
getColor(org.eclipse.swt.graphics.RGB rgb)
Returns a color for the passed in RGB.
|
org.eclipse.swt.graphics.Font |
getFont(org.eclipse.swt.graphics.FontData fontData)
Returns a font for the passed in FontData.
|
public static ResourcePool forDevice(org.eclipse.swt.graphics.Device device)
device - the device which resources will be created on.public org.eclipse.swt.graphics.Font getFont(org.eclipse.swt.graphics.FontData fontData)
fontData - FontData describing the required font.public org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)
rgb - RGB describing the required color.