org.fosstrak.llrp.commander.editors
Class ColorManager

java.lang.Object
  extended by org.fosstrak.llrp.commander.editors.ColorManager

public class ColorManager
extends java.lang.Object

A helper class for supporting the color table used in XML Editor.

Version:
1.0
Author:
Haoning Zhang

Field Summary
protected  java.util.Map<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> fColorTable
          Color table.
 
Constructor Summary
ColorManager()
           
 
Method Summary
 void dispose()
          Dispose all the Color in the Color Table.
 org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB aRGB)
          Get the Color instance by RGB.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fColorTable

protected java.util.Map<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> fColorTable
Color table.

Constructor Detail

ColorManager

public ColorManager()
Method Detail

dispose

public void dispose()
Dispose all the Color in the Color Table.


getColor

public org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB aRGB)
Get the Color instance by RGB. The color will be created when first uses.

Parameters:
aRGB - RGB instance
Returns:
Color instance from Color Table


Copyright © 2009. All Rights Reserved.