org.eclipse.mtl.ide.ui.editors.template
Class ColorManager

java.lang.Object
  extended by org.eclipse.mtl.ide.ui.editors.template.ColorManager

public class ColorManager
extends java.lang.Object

The color manager for the template editor. It is often used for syntax highlighting.


Field Summary
protected  java.util.Map<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> fColorTable
          Created colors.
 
Constructor Summary
ColorManager()
           
 
Method Summary
 void dispose()
          It disposes color manager.
 org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)
          Gets the color for the given description (Red, Green, Blue).
 
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
Created colors.

Constructor Detail

ColorManager

public ColorManager()
Method Detail

dispose

public void dispose()
It disposes color manager.


getColor

public org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)
Gets the color for the given description (Red, Green, Blue).

Parameters:
rgb - is the description of color
Returns:
the color

Copyright 2008 Obeo
All Rights Reserved.