|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WChartPalette
Abstract base class for styling rendered data series in charts.
This class provides an interface for a palette which sets strokes and fill
strokes for data in a chart. A palette is an ordered
list of styles, which is indexed by the chart to get a suitable style for a
particular series (in case of WCartesianChart
) or data row (in case of WPieChart). Each style is defined by a
brush, two pen styles (one for borders, and one for plain lines), and a font
color that is appropriate for drawing text within the brushed area.
To use a custom palette, you should reimplement this class, and then use
WAbstractChart#setPalette() to use an instance of the palette.
| Method Summary | |
|---|---|
WPen |
getBorderPen(int index)
Returns a border pen from the palette. |
WBrush |
getBrush(int index)
Returns a brush from the palette. |
WColor |
getFontColor(int index)
Returns a font color from the palette. |
WPen |
getStrokePen(int index)
Returns a stroke pen from the palette. |
| Method Detail |
|---|
WBrush getBrush(int index)
Returns the brush for the style with given index.
WPen getBorderPen(int index)
Returns the pen for stroking borders around an area filled using the brush at the same index.
getStrokePen(int index),
getBrush(int index)WPen getStrokePen(int index)
Returns the pen for stroking lines for the style with given index.
getStrokePen(int index)WColor getFontColor(int index)
Returns a font color suitable for rendering text in the area filled with the brush at the same index.
getBrush(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||