public interface ColorSource
PiePlot3D class. This is the
interface through which the plot will obtain colors for each data item
(segment) in the chart. A default implementation
(StandardColorSource) is provided.| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor(java.lang.Comparable<?> key)
Returns the color for one data item in the chart.
|
void |
setColor(java.lang.Comparable<?> key,
java.awt.Color color)
Sets the color associated with the specified key.
|
void |
style(java.awt.Color... colors)
Restyles the source using the specified colors.
|
java.awt.Color getColor(java.lang.Comparable<?> key)
Color rather than a paint, because some manipulations
that require a Color instance are done for the shading
during the 3D rendering.key - the key (null not permitted).void setColor(java.lang.Comparable<?> key, java.awt.Color color)
null, this will have the effect of clearing any
previous setting and reverting to the default color.key - the key (null not permitted).color - the color (null permitted).void style(java.awt.Color... colors)
colors - the colors.