public class PropertyParser extends Object
Modifier and Type | Method and Description |
---|---|
static Color |
getColor(String text,
Color def)
Convert the specified string into a
Color |
static int |
getHighlightType(String text,
int def)
Convert the specified string into a highlight (eg
TextSelection.TYPE_BLOCK ) |
static float |
getMargin(String text,
float def)
Convert the specified string into a margin;
|
static Paint |
getPaint(String text,
Paint def)
Convert the specified string into a
Paint |
static Stroke |
getStroke(String text,
Stroke def)
Convert the specified string into a
Stroke |
public static Paint getPaint(String text, Paint def)
Paint
text
- the stringdef
- the default valuepublic static Color getColor(String text, Color def)
Color
text
- the stringdef
- the default valuepublic static int getHighlightType(String text, int def)
TextSelection.TYPE_BLOCK
)text
- the stringdef
- the default valuepublic static Stroke getStroke(String text, Stroke def)
Stroke
text
- the stringdef
- the default valuepublic static float getMargin(String text, float def)
text
- the stringdef
- the default valueCopyright © 2001-2017 Big Faceless Organization