org.pentaho.chart.css.parser.stylehandler
Class ChartGradientReadHandler
java.lang.Object
org.pentaho.chart.css.parser.stylehandler.ChartGradientReadHandler
- All Implemented Interfaces:
- org.pentaho.reporting.libraries.css.parser.CSSCompoundValueReadHandler
public class ChartGradientReadHandler
- extends Object
- implements org.pentaho.reporting.libraries.css.parser.CSSCompoundValueReadHandler
TODO: change comments
The style parser for the style: "-x-pentaho-chart-gradient" compound type.
This style comprises of three values (in given order):
-x-pentaho-chart-gradient-color (color1, color2) eg: red, yellow
-x-pentaho-chart-gradient-type (none, horizontal, etc)
-x-pentaho-chart-gradient-start start_pos1,start_pos2
-x-pentaho-chart-gradient-end end_pos1,end_pos2
For eg: -x-pentaho-chart-gradient: red, blue VERTICAL 1,2 2,20
-x-pentaho-chart-gradient: red, yellow HORIZONTAL 2,2 5,20
- Author:
- Ravi Hasija
Method Summary |
Map |
createValues(org.w3c.css.sac.LexicalUnit unit)
Parses the LexicalUnit and returns a map of (StyleKey, CSSValue) pairs. |
org.pentaho.reporting.libraries.css.model.StyleKey[] |
getAffectedKeys()
|
ChartGradientReadHandler
public ChartGradientReadHandler()
getAffectedKeys
public org.pentaho.reporting.libraries.css.model.StyleKey[] getAffectedKeys()
- Specified by:
getAffectedKeys
in interface org.pentaho.reporting.libraries.css.parser.CSSCompoundValueReadHandler
createValues
public Map createValues(org.w3c.css.sac.LexicalUnit unit)
- Parses the LexicalUnit and returns a map of (StyleKey, CSSValue) pairs.
- Specified by:
createValues
in interface org.pentaho.reporting.libraries.css.parser.CSSCompoundValueReadHandler
- Parameters:
unit
-
- Returns: