net.sourceforge.geeboss.util
Class GCUtil

java.lang.Object
  extended by net.sourceforge.geeboss.util.GCUtil

public class GCUtil
extends java.lang.Object

Utility methods for SWT GC manipulation

Author:
Frederic BORRY

Constructor Summary
GCUtil()
           
 
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
 

Constructor Detail

GCUtil

public GCUtil()
Method Detail

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 background
x - the x coordinate for we want the background for
y - the y coordinate for we want the background for
width - the width of the background image to create
heigth - 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 image
fg - the foreground image
Returns:
the layered image


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.