de.jaret.util.swt
Class ColorManager

java.lang.Object
  extended by de.jaret.util.swt.ColorManager

public class ColorManager
extends Object

Simple class to collect allocated colors and to relese them.

Version:
$Id: ColorManager.java 242 2007-02-11 21:05:07Z olk $
Author:
Peter Kliem

Field Summary
protected  Map<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> _colorTable
           
protected  org.eclipse.swt.graphics.Device _device
           
protected static Map<org.eclipse.swt.graphics.Device,ColorManager> _instances
           
 
Constructor Summary
ColorManager(org.eclipse.swt.graphics.Device device)
           
 
Method Summary
 void dispose()
           
static void disposeAll()
           
 org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)
           
static ColorManager getColorManager(org.eclipse.swt.graphics.Device device)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instances

protected static Map<org.eclipse.swt.graphics.Device,ColorManager> _instances

_colorTable

protected Map<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> _colorTable

_device

protected org.eclipse.swt.graphics.Device _device
Constructor Detail

ColorManager

public ColorManager(org.eclipse.swt.graphics.Device device)
Method Detail

getColorManager

public static ColorManager getColorManager(org.eclipse.swt.graphics.Device device)

disposeAll

public static void disposeAll()

dispose

public void dispose()

getColor

public org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)


Copyright © 2013. All Rights Reserved.