public class CssBuilder extends Object
| Constructor and Description |
|---|
CssBuilder(ScroogeXHTMLBase converter)
TODO(MJ) use instance with final charProps / parProps.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getBorderStyle(BorderStyle rbs,
String bc,
int width) |
String |
getCharacterStyles(ParagraphProperties parProps,
CharacterProperties charProps)
Returns the character styles value.
|
static String |
getFontSizeStyle(int pt,
FontSizeUnit fontSizeUnit)
Returns the font size style value.
|
String |
getParagraphStyleCSS(ParagraphProperties parProps) |
static int |
twipsToPix(long twips)
Convert TWIPS to Pixel.
|
public CssBuilder(ScroogeXHTMLBase converter)
converter - the converter instancepublic static String getFontSizeStyle(int pt, FontSizeUnit fontSizeUnit)
pt - int The font size in point.fontSizeUnit - The font size unit.public String getCharacterStyles(ParagraphProperties parProps, CharacterProperties charProps)
parProps - the current paragraph propertiescharProps - the current character propertiespublic String getParagraphStyleCSS(ParagraphProperties parProps)
public static int twipsToPix(long twips)
twips - Number of TWIPS.public static String getBorderStyle(BorderStyle rbs, String bc, int width)
Copyright © 2019 Habarisoft. All rights reserved.