net.sourceforge.geeboss.util
Class GCUtil
java.lang.Object
net.sourceforge.geeboss.util.GCUtil
public class GCUtil
- extends java.lang.Object
Utility methods for SWT GC manipulation
- Author:
- Frederic BORRY
Method Summary |
static org.eclipse.swt.graphics.Image |
createBackgroundImage(org.eclipse.swt.graphics.Image controlBg,
int x,
int y,
int width,
int heigth)
Create a background image |
static org.eclipse.swt.graphics.Image |
layerImages(org.eclipse.swt.graphics.Image bg,
org.eclipse.swt.graphics.Image fg)
Layer a background and a foreground image into an new image |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GCUtil
public GCUtil()
createBackgroundImage
public static org.eclipse.swt.graphics.Image createBackgroundImage(org.eclipse.swt.graphics.Image controlBg,
int x,
int y,
int width,
int heigth)
- Create a background image
- Parameters:
controlBg
- the control backgroundx
- the x coordinate for we want the background fory
- the y coordinate for we want the background forwidth
- the width of the background image to createheigth
- the heigth of the background image to create
- Returns:
- the background image
layerImages
public static org.eclipse.swt.graphics.Image layerImages(org.eclipse.swt.graphics.Image bg,
org.eclipse.swt.graphics.Image fg)
- Layer a background and a foreground image into an new image
- Parameters:
bg
- the background imagefg
- the foreground image
- Returns:
- the layered image
Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.