|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.paperclips.internal.ResourcePool
public class ResourcePool
Manages a pool of graphics resources for a graphics device (fonts, colors).
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||