|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swt.icons.Images
public final class Images
| Field Summary | |
|---|---|
static String |
DFC_ICONS_PATH
The base path of DFC icons. |
| Method Summary | |
|---|---|
static void |
addSearchPath(String path)
Add a path to the front of the list of paths searched for relative image resources. |
static void |
blit(org.eclipse.swt.graphics.ImageData trg,
org.eclipse.swt.graphics.ImageData src,
int ox,
int oy)
Modified version of CompositeImageDescriptor.blit () from 3.0M6 that actually works. |
static org.eclipse.swt.graphics.ImageData |
createBlankImageData(int width,
int height)
Create an 8-bit blank image data block. |
static org.eclipse.swt.graphics.ImageData |
createBlankImageData(int width,
int height,
int depth,
org.eclipse.swt.graphics.PaletteData palette)
Create a blank image data block with a given depth and palette. |
static org.eclipse.jface.resource.ImageDescriptor |
createDescriptor(String resourceName)
|
static Icon |
createIcon(String resource)
|
static org.eclipse.swt.graphics.Image |
createImage(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.ImageData data)
|
static org.eclipse.swt.graphics.Image |
createImage(org.eclipse.swt.graphics.Device device,
String resource)
Create an image from a resource. |
static org.eclipse.swt.graphics.Image |
createImage(org.eclipse.swt.graphics.Device device,
URL url)
Create an image from a URL. |
static org.eclipse.swt.graphics.Image |
createImage(String resource)
Create an image from a resource. |
static org.eclipse.swt.graphics.Image |
createImage(URL url)
Create an image from a URL. |
static void |
finalizePalette(org.eclipse.swt.graphics.PaletteData palette)
Finalize an indexed palette by filling unused (null) entries with black pixels. |
static URL |
findResource(String resource)
Find a resource, searching the image path if the resource is relative. |
static org.eclipse.swt.graphics.ImageData[] |
loadImageData(String resource)
Load image data from a resource. |
static org.eclipse.swt.graphics.ImageData[] |
loadImageData(URL url)
Load image data from a URL. |
static void |
mergeIcons(org.eclipse.swt.graphics.ImageData trg,
org.eclipse.swt.graphics.ImageData src,
int x,
int y)
Merge a source icon image into a target, handling transparency masks. |
static void |
orMasks(org.eclipse.swt.graphics.ImageData trg,
org.eclipse.swt.graphics.ImageData src,
int ox,
int oy)
Logically OR two transparency masks together to form a union mask. |
static void |
removeSearchPath(String path)
Undo the effect of addSearchPath () |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DFC_ICONS_PATH
| Method Detail |
|---|
public static void addSearchPath(String path)
public static void removeSearchPath(String path)
public static Icon createIcon(String resource)
public static org.eclipse.swt.graphics.Image createImage(String resource)
resource - The resource name. If relative (does not begin
with "/") the resource is searched for in the current search path
(see addSearchPath(String)).
loadImageData(URL),
addSearchPath(String)public static org.eclipse.swt.graphics.Image createImage(URL url)
url - The URL.
loadImageData(String),
addSearchPath(String)
public static org.eclipse.swt.graphics.Image createImage(org.eclipse.swt.graphics.Device device,
String resource)
device - The image device.resource - The resource name. If relative (does not begin
with "/") the resource is searched for in the current search path
(see addSearchPath(String)).
loadImageData(URL),
addSearchPath(String)
public static org.eclipse.swt.graphics.Image createImage(org.eclipse.swt.graphics.Device device,
URL url)
device - The image device.url - The URL.
loadImageData(URL),
addSearchPath(String)
public static org.eclipse.swt.graphics.Image createImage(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.ImageData data)
public static org.eclipse.swt.graphics.ImageData[] loadImageData(String resource)
throws IllegalArgumentException
resource - The resource name. If relative (does not begin
with "/") the resource is searched for in the current search path
(see addSearchPath(String)).
IllegalArgumentException - if the image resource is not
found.loadImageData(URL)
public static org.eclipse.swt.graphics.ImageData[] loadImageData(URL url)
throws IllegalArgumentException
url - The URL to load from.
IllegalArgumentException - if the image resource is not found.public static URL findResource(String resource)
public static org.eclipse.jface.resource.ImageDescriptor createDescriptor(String resourceName)
public static org.eclipse.swt.graphics.ImageData createBlankImageData(int width,
int height)
finalizePalette(PaletteData).
createBlankImageData(int, int, int, PaletteData)
public static org.eclipse.swt.graphics.ImageData createBlankImageData(int width,
int height,
int depth,
org.eclipse.swt.graphics.PaletteData palette)
createBlankImageData(int, int)public static void finalizePalette(org.eclipse.swt.graphics.PaletteData palette)
public static void mergeIcons(org.eclipse.swt.graphics.ImageData trg,
org.eclipse.swt.graphics.ImageData src,
int x,
int y)
trg - The target to be modified.src - The source image.x - Start x coord inside trg.y - Start y coord inside trg.
public static void blit(org.eclipse.swt.graphics.ImageData trg,
org.eclipse.swt.graphics.ImageData src,
int ox,
int oy)
public static void orMasks(org.eclipse.swt.graphics.ImageData trg,
org.eclipse.swt.graphics.ImageData src,
int ox,
int oy)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||