Package com.aowagie.text.html
Class Markup
java.lang.Object
com.aowagie.text.html.Markup
A class that contains all the possible tagnames and their attributes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe CSS tag for text colorstatic final Stringthe CSS tag for the font familystatic final Stringthe CSS tag for the font sizestatic final Stringthe CSS tag for the font stylestatic final Stringthe CSS tag for the font weightstatic final Stringthe CSS tag for text decorationsstatic final Stringthe CSS tag for text decorationsstatic final Stringa CSS value for text font weightstatic final Stringa CSS value for text font stylestatic final Stringa CSS value for text decorationstatic final Stringa CSS valuestatic final Stringa CSS value for text font stylestatic final Stringa CSS value for text decorationstatic final floata default value for font-sizestatic final StringThis is used for inline css style information -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorConverts aColorinto a HTML representation of thisColor.static PropertiesparseAttributes(String string) This method parses a String with attributes and returns a Properties object.static floatparseLength(String string) Parses a length.static floatparseLength(String string, float actualFontSize) New method contributed by: Lubos Strapko
-
Field Details
-
HTML_ATTR_STYLE
This is used for inline css style information- See Also:
-
CSS_KEY_COLOR
the CSS tag for text color- See Also:
-
CSS_KEY_FONTFAMILY
the CSS tag for the font family- See Also:
-
CSS_KEY_FONTSIZE
the CSS tag for the font size- See Also:
-
CSS_KEY_FONTSTYLE
the CSS tag for the font style- See Also:
-
CSS_KEY_FONTWEIGHT
the CSS tag for the font weight- See Also:
-
CSS_KEY_LINEHEIGHT
the CSS tag for text decorations- See Also:
-
CSS_KEY_VERTICALALIGN
the CSS tag for text decorations- See Also:
-
CSS_VALUE_BOLD
a CSS value for text font weight- See Also:
-
CSS_VALUE_ITALIC
a CSS value for text font style- See Also:
-
CSS_VALUE_LINETHROUGH
a CSS value for text decoration- See Also:
-
CSS_VALUE_NORMAL
a CSS value- See Also:
-
CSS_VALUE_OBLIQUE
a CSS value for text font style- See Also:
-
CSS_VALUE_UNDERLINE
a CSS value for text decoration- See Also:
-
DEFAULT_FONT_SIZE
public static final float DEFAULT_FONT_SIZEa default value for font-size- Since:
- 2.1.3
- See Also:
-
-
Constructor Details
-
Markup
public Markup()
-
-
Method Details
-
parseLength
Parses a length.- Parameters:
string- a length in the form of an optional + or -, followed by a number and a unit.- Returns:
- a float
-
parseLength
New method contributed by: Lubos Strapko- Parameters:
string- StringactualFontSize- Actual Font Size- Returns:
- Length
- Since:
- 2.1.3
-
decodeColor
Converts aColorinto a HTML representation of thisColor.- Parameters:
s- theColorthat has to be converted.- Returns:
- the HTML representation of this
Color
-
parseAttributes
This method parses a String with attributes and returns a Properties object.- Parameters:
string- a String of this form: 'key1="value1"; key2="value2";... keyN="valueN" '- Returns:
- a Properties object
-