|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lowagie.text.markup.MarkupParser
This class contains several static methods that can be used to parse markup.
Constructor Summary | |
private |
MarkupParser()
Creates new MarkupParser |
Method Summary | |
static Color |
decodeColor(String color)
Converts a Color into a HTML representation of this Color . |
static Properties |
parseAttributes(String string)
This method parses a String with attributes and returns a Properties object. |
static Properties |
parseFont(String string)
This method parses the value of 'font' attribute and returns a Properties object. |
static float |
parseLength(String string)
Parses a length. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private MarkupParser()
Method Detail |
public static Properties parseAttributes(String string)
string
- a String of this form: 'key1="value1"; key2="value2";... keyN="valueN" '
public static Properties parseFont(String string)
string
- a String of this form: 'style1 ... styleN size/leading font1 ... fontN'
public static float parseLength(String string)
string
- a length in the form of an optional + or -, followed by a number and a unit.
public static Color decodeColor(String color)
Color
into a HTML representation of this Color
.
color
- the Color
that has to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |