de.enough.polish.preprocess.backgrounds
Class DoubleGradientVerticalBackgroundConverter

java.lang.Object
  extended by de.enough.polish.preprocess.css.Converter
      extended by de.enough.polish.preprocess.css.BackgroundConverter
          extended by de.enough.polish.preprocess.backgrounds.DoubleGradientVerticalBackgroundConverter

public class DoubleGradientVerticalBackgroundConverter
extends BackgroundConverter

Converter for de.enough.polish.ui.backgrounds.GradientVerticalBackground.

Author:
Tim Muders

Field Summary
 
Fields inherited from class de.enough.polish.preprocess.css.BackgroundConverter
BACKGROUNDS_PACKAGE, borderColor, borderColorConstructor, borderWidth, color, colorConstructor, hasBorder, styleName
 
Fields inherited from class de.enough.polish.preprocess.css.Converter
ANCHORS, colorConverter, STANDALONE_MODIFIER, STANDALONE_MODIFIER_NON_FINAL
 
Constructor Summary
DoubleGradientVerticalBackgroundConverter()
           
 
Method Summary
protected  String createNewStatement(AttributesGroup map, Style stlye, StyleSheet styleSheet)
          Creates the statement for a new background based on the given properties.
 
Methods inherited from class de.enough.polish.preprocess.css.BackgroundConverter
addBackground, parseAnchor, parseBoolean, parseFloat, parseInt, parseStroke
 
Methods inherited from class de.enough.polish.preprocess.css.Converter
getUrl, isAlphaColor, parseAnchor, parseBoolean, parseColor, parseFloat, parseInt, parseInt, parseStroke, print, setColorConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleGradientVerticalBackgroundConverter

public DoubleGradientVerticalBackgroundConverter()
Method Detail

createNewStatement

protected String createNewStatement(AttributesGroup map,
                                    Style stlye,
                                    StyleSheet styleSheet)
                             throws BuildException
Description copied from class: BackgroundConverter
Creates the statement for a new background based on the given properties.

Specified by:
createNewStatement in class BackgroundConverter
Parameters:
map - the map containing all background settings
stlye - the parent style
styleSheet - the style-sheet into which the style is embedded
Returns:
the new statement, e.g. "new de.enough.polish.ui.backgrounds.SimpleBackground( 0x000000 )" no semicolon or comma must appended.
Throws:
BuildException - when there are invalid CSS declarations in the given background