Class ODFStyleCreator
java.lang.Object
com.nomagic.magicreport.format.html.ODFStyleCreator
ODFStyleCreator provide creating of ODF style tag.
- Since:
- Apr 9, 2008 11:26:05 AM
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringConvert color into string.static StringgetBoldStyle(String name) Returns String that represent Bold format in ODF document.static StringgetColorStyle(String name, Color color) Returns String that represent Color format in ODF document.static StringgetFontStyle(String name, Font font) Returns String that represent Font format in ODF document.static StringgetItalicStyle(String name) Return String that represent Italic format in ODF document.static StringgetStrikeStyle(String name) Returns String that represent Underline format in ODF document.static StringgetUnderLineStyle(String name) Returns String that represent Underline format in ODF document.static doublelengthConversion(String length, String targetUnit) Convert length into another unit.
-
Method Details
-
getItalicStyle
Return String that represent Italic format in ODF document.- Parameters:
name- the tag name in ODF document.- Returns:
- String that represent Italic format in ODF document.
-
getBoldStyle
Returns String that represent Bold format in ODF document.- Parameters:
name- the tag name in ODF document.- Returns:
- String that represent Bold format in ODF document.
-
getUnderLineStyle
Returns String that represent Underline format in ODF document.- Parameters:
name- the tag name in ODF document.- Returns:
- String that represent Underline format in ODF document.
-
getStrikeStyle
Returns String that represent Underline format in ODF document.- Parameters:
name- the tag name in ODF document.- Returns:
- String that represent Underline format in ODF document.
-
getColorStyle
Returns String that represent Color format in ODF document.- Parameters:
name- the tag name in ODF document.color- the Color to return.- Returns:
- String that represent Color format in ODF document.
-
getFontStyle
Returns String that represent Font format in ODF document.- Parameters:
name- the tag name in ODF document.font- the Font object to return.- Returns:
- String that represent Font format in ODF document.
-
colorToString
Convert color into string.- Parameters:
c- the color- Returns:
- string value for the color
-
lengthConversion
Convert length into another unit.- Parameters:
length- input lengthtargetUnit- target unit. One of (cm)|(mm)|(in)|(pt)|(pc)|(px).- Returns:
- string with new length
-