public class CSS extends Object
span.setStyle(CSS.BOLD + CSS.color(Color.red) + CSS.ITALIC);
| Modifier and Type | Field and Description | 
|---|---|
| static String | BOLDShortcut for 'font-weight:bold;' | 
| static String | ITALICShortcut for 'font-style:italic;' | 
| static String | MONOSPACEShortcut for 'font-family:monospace;' | 
| static String | SMALL_FONTShortcut for 'font-size:small;' | 
| static String | STYLE | 
| static String | SUPERShortcut for 'vertical-align:super;' | 
| static String | UNDERLINEShortcut for 'text-decoration:underline;' | 
| Constructor and Description | 
|---|
| CSS() | 
| CSS(Reader inReader)Parses CSS text into rules. | 
| Modifier and Type | Method and Description | 
|---|---|
| CSSRule | addRule() | 
| CSS | addRule(CSSRule inRule) | 
| static String | bgColor(Color inColor) | 
| static String | bgColor(String inColor) | 
| static String | color(Color inColor) | 
| static String | color(String inColor) | 
| static String | display(CSSDisplayValue inValue) | 
| static String | fontSize(int inPtSize) | 
| static String | fontSizeEm(int inValue) | 
| List<CSSDeclaration> | getCSSDeclarationsForHTMLTag(HTMLTag inHTML,
                            CSSMediaType inMediaType)Returns CSS declarations that apply to the specified HTML tag. | 
| List<CSSRule> | getCSSRules() | 
| static String | height(String inValue) | 
| void | localizeStyles(HTMLTag inHTML,
              CSSMediaType inMediaType)Where specified CSS rules apply, the styling is placed in the tag's style attribute. | 
| static String | textAlign(Align inValue) | 
| String | toString() | 
| static String | verticalAlign(VAlign inValue) | 
| static String | width(String inValue) | 
public static final String STYLE
public static final String BOLD
public static final String ITALIC
public static final String UNDERLINE
public static final String SMALL_FONT
public static final String MONOSPACE
public static final String SUPER
public CSS()
public CSS(Reader inReader) throws IOException
inReader - CSS textIOException - if a problem is encountered while processing the CSS text from the specified Readerpublic List<CSSRule> getCSSRules()
public List<CSSDeclaration> getCSSDeclarationsForHTMLTag(HTMLTag inHTML, CSSMediaType inMediaType)
inHTML - top tag in a chunk of HTML DOMinMediaType - CSS media typepublic void localizeStyles(HTMLTag inHTML, CSSMediaType inMediaType)
inHTML - top tag in a chunk of HTML DOMinMediaType - CSS media typepublic static String fontSizeEm(int inValue)
public static String verticalAlign(VAlign inValue)
public static String display(CSSDisplayValue inValue)
      jataylor@hairyfatguy.com