databionics.io
Class ColorMapping

java.lang.Object
  extended by databionics.io.ColorMapping

public class ColorMapping
extends java.lang.Object

Mapping of a ColorTable to a given number of color steps.

Author:
stammi

Field Summary
protected  ColorStatistics colorStats
           
protected  ColorTable colorTable
           
protected static org.apache.log4j.Logger log
          interface to log4j system
protected  cern.colt.list.IntArrayList stepList
           
protected  int steps
           
 
Constructor Summary
ColorMapping(ColorTable table, int steps)
          Constructor initialises colorTable and stepList.
 
Method Summary
 java.awt.Color get(int i)
           
 java.awt.Color get(int i, double height)
           
 ColorStatistics getColorStats()
           
 int getSize()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
interface to log4j system


colorTable

protected ColorTable colorTable

colorStats

protected ColorStatistics colorStats

steps

protected int steps

stepList

protected cern.colt.list.IntArrayList stepList
Constructor Detail

ColorMapping

public ColorMapping(ColorTable table,
                    int steps)
Constructor initialises colorTable and stepList.

Parameters:
table - The ColorTable to Use
steps - Number of ColorSteps to produce
Method Detail

reset

public void reset()

get

public java.awt.Color get(int i)

get

public java.awt.Color get(int i,
                          double height)

getSize

public int getSize()

getColorStats

public ColorStatistics getColorStats()
Returns:
Returns the colorStats.


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.