|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.chart.WStandardPalette
public class WStandardPalette
Standard styling for rendering series in charts.
This class provides four standard palettes, each composed of eight different colors (these are recycled at index 8).
The three colored palettes are a variation on those defined at http://www.modernlifeisrubbish.co.uk/article/web-2.0-colour-palette.
The following table lists the background color, and font color of the different palettes:
| Neutral | Bold | Muted | GrayScale |
| Gmail blue | Mozilla red | Ruby on Rails red | Gray #1 |
| Shiny silver | Flock blue | Mozilla blue | Gray #2 |
| Interactive action yellow | RSS orange | Etsy vermillion | Gray #3 |
| Qoop mint | Techcrunch green | Digg blue | Gray #4 |
| Digg blue | Flickr pink | 43 Things gold | Gray #5 |
| Shadows grey | Newsvine green | Writely olive | Gray #6 |
| Magnolia Mag.nolia | Magnolia Mag.nolia | Last.fm crimson | Gray #7 |
| RSS orange | Rollyo red | Basecamp green | Gray #8 |
The border pen is in all cases a gray pen of 0 width, while the stroke pen is a line of width 2 in the background color.
| Nested Class Summary | |
|---|---|
static class |
WStandardPalette.Flavour
Enumeration that indicates the palette flavour. |
| Constructor Summary | |
|---|---|
WStandardPalette(WStandardPalette.Flavour flavour)
Creates a standard palette of a particular flavour. |
|
| Method Summary | |
|---|---|
WColor |
color(int index)
Returns the color for the given index. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WStandardPalette(WStandardPalette.Flavour flavour)
| Method Detail |
|---|
public WBrush getBrush(int index)
WChartPaletteReturns the brush for the style with given index.
getBrush in interface WChartPalettepublic WPen getBorderPen(int index)
WChartPaletteReturns the pen for stroking borders around an area filled using the brush at the same index.
getBorderPen in interface WChartPaletteWChartPalette.getStrokePen(int index),
WChartPalette.getBrush(int index)public WPen getStrokePen(int index)
WChartPaletteReturns the pen for stroking lines for the style with given index.
getStrokePen in interface WChartPaletteWChartPalette.getStrokePen(int index)public WColor getFontColor(int index)
WChartPaletteReturns a font color suitable for rendering text in the area filled with the brush at the same index.
getFontColor in interface WChartPaletteWChartPalette.getBrush(int index)public WColor color(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||