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 String
the CSS tag for text colorstatic final String
the CSS tag for the font familystatic final String
the CSS tag for the font sizestatic final String
the CSS tag for the font stylestatic final String
the CSS tag for the font weightstatic final String
the CSS tag for text decorationsstatic final String
the CSS tag for text decorationsstatic final String
a CSS value for text font weightstatic final String
a CSS value for text font stylestatic final String
a CSS value for text decorationstatic final String
a CSS valuestatic final String
a CSS value for text font stylestatic final String
a CSS value for text decorationstatic final float
a default value for font-sizestatic final String
This is used for inline css style information -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
Converts aColor
into a HTML representation of thisColor
.static Properties
parseAttributes
(String string) This method parses a String with attributes and returns a Properties object.static float
parseLength
(String string) Parses a length.static float
parseLength
(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 aColor
into a HTML representation of thisColor
.- Parameters:
s
- theColor
that 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
-