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
-
CSS_KEY_COLOR
-
CSS_KEY_FONTFAMILY
-
CSS_KEY_FONTSIZE
-
CSS_KEY_FONTSTYLE
-
CSS_KEY_FONTWEIGHT
-
CSS_KEY_LINEHEIGHT
-
CSS_KEY_VERTICALALIGN
-
CSS_VALUE_BOLD
-
CSS_VALUE_ITALIC
-
CSS_VALUE_LINETHROUGH
-
CSS_VALUE_NORMAL
-
CSS_VALUE_OBLIQUE
-
CSS_VALUE_UNDERLINE
-
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
-
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
-