|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.mapper.ColorMapper
public class ColorMapper extends java.lang.Object implements java.io.Serializable
Maps colors to axis values. Interpolates between given colors according to axis range minimum and maximum values.
| Constructor and Description |
|---|
ColorMapper(DataColumnType valueType)
Constructs a new ColorMapper. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor(java.lang.Object o)
Gets color for given object. |
java.awt.Color[] |
getColorPalette()
Gets color palette. |
AxisMapper |
getMapper()
Returns the axis mapper for color mapping. |
DataColumnType |
getValueType()
Gets value type to which colors a mapped. |
void |
setColorPalette(java.awt.Color[] palette)
Sets mapping color palette. |
void |
setColors(java.awt.Color first,
java.awt.Color last)
Sets color range which is used in mapping axis values. |
void |
setMapper(AxisMapper mapper)
Sets axis mapper for color mapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorMapper(DataColumnType valueType)
ColorMapper.
valueType - value type to which colors are mapped| Method Detail |
|---|
public void setMapper(AxisMapper mapper)
mapper - axis mapper.public AxisMapper getMapper()
public void setColors(java.awt.Color first,
java.awt.Color last)
first - starting colorlast - ending colorpublic java.awt.Color getColor(java.lang.Object o)
o - object to mappublic void setColorPalette(java.awt.Color[] palette)
palette - color palettepublic java.awt.Color[] getColorPalette()
public DataColumnType getValueType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||