org.eclipse.xpand.ui.editor.color
Class ColorProvider

java.lang.Object
  extended by org.eclipse.xpand.ui.editor.color.ColorProvider

public class ColorProvider
extends java.lang.Object

Manager for colors used in the Template editor


Field Summary
protected  java.util.Map<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> ivColorTable
           
 
Constructor Summary
ColorProvider()
           
 
Method Summary
 void dispose()
          Release all of the color resources held onto by the receiver.
 org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB aRgb)
          Return the Color that is stored in the Color table as rgb.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ivColorTable

protected java.util.Map<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> ivColorTable
Constructor Detail

ColorProvider

public ColorProvider()
Method Detail

dispose

public void dispose()
Release all of the color resources held onto by the receiver.


getColor

public org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB aRgb)
Return the Color that is stored in the Color table as rgb. Create new entry, if none can be found.

Parameters:
rgb - RGB color to lookup from HashMap

Copyright 2007 committers of openArchitectureWare and others.
All Rights Reserved.