databionics.io
Class ColorMapping
java.lang.Object
databionics.io.ColorMapping
public class ColorMapping
- extends java.lang.Object
Mapping of a ColorTable to a given number of color steps.
- Author:
- stammi
Constructor Summary |
ColorMapping(ColorTable table,
int steps)
Constructor initialises colorTable and stepList. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ColorMapping
public ColorMapping(ColorTable table,
int steps)
- Constructor initialises colorTable and stepList.
- Parameters:
table
- The ColorTable to Usesteps
- Number of ColorSteps to produce
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.