*/
public Text(String text, String family, String style, double points)
{
super(ShapeType.TEXT);
LienzoGlobals globals = LienzoGlobals.getInstance();
if (null == text)
{
text = "";
}
if ((null == family) || ((family = family.trim()).isEmpty()))
{
family = globals.getDefaultFontFamily();
}
if ((null == style) || ((style = style.trim()).isEmpty()))
{
style = globals.getDefaultFontStyle();
}
if (points <= 0)
{
points = globals.getDefaultFontSize();
}
setText(text).setFontFamily(family).setFontStyle(style).setFontSize(points);
}