metricsOverlay.colorManagers
Class ContinuousListColorManager

java.lang.Object
  extended by metricsOverlay.colorManagers.ContinuousListColorManager
All Implemented Interfaces:
IColorManager

public class ContinuousListColorManager
extends java.lang.Object
implements IColorManager

This colour manager takes in a list of colours, and then provides an interpolated result between the each of the colours specified.

Version:
5/7/2009
Author:
Matthew Harward

Constructor Summary
ContinuousListColorManager()
           
ContinuousListColorManager(java.util.List<org.eclipse.swt.graphics.Color> cList)
           
 
Method Summary
 void appendColor(org.eclipse.swt.graphics.Color a)
           
 org.eclipse.swt.graphics.Color getColor(int index)
           
 int getNumColors()
           
 int getRange()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuousListColorManager

public ContinuousListColorManager()

ContinuousListColorManager

public ContinuousListColorManager(java.util.List<org.eclipse.swt.graphics.Color> cList)
Method Detail

getNumColors

public int getNumColors()
Specified by:
getNumColors in interface IColorManager

getRange

public int getRange()
Specified by:
getRange in interface IColorManager

appendColor

public void appendColor(org.eclipse.swt.graphics.Color a)

getColor

public org.eclipse.swt.graphics.Color getColor(int index)
Specified by:
getColor in interface IColorManager