public interface ColorMapper
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColor(int index,
java.lang.Object facetValueId,
java.lang.String purpose)
Returns the color to be used for the specified chart data - must return a color in the
format of of a leading hash (#) plus 6 hexadecimal digits as mentioned in the docs for
CSSColor . |
java.lang.String getColor(int index, java.lang.Object facetValueId, java.lang.String purpose)
CSSColor
.index
- index of the legend facet value to be renderedfacetValueId
- id of the legend facet value to be renderedpurpose
- purpose for the requested gradient - such as "legend", "line", "area",
"points", etc.FacetChart.setDataColorMapper(com.smartgwt.client.widgets.chart.ColorMapper)
,
FacetChart.setDataLineColorMapper(com.smartgwt.client.widgets.chart.ColorMapper)
,
MetricSettings.setDataColorMapper(com.smartgwt.client.widgets.chart.ColorMapper)
,
MetricSettings.setDataLineColorMapper(com.smartgwt.client.widgets.chart.ColorMapper)