parseColor function

Color parseColor(
  1. MetaObject context,
  2. Color defaultvalue,
  3. TreeNode node,
  4. String property
)

Implementation

Color parseColor(MetaObject context, Color defaultvalue,TreeNode node,
    String property) {
  String colorstr = parseString(context, null, node, property);
  if(colorstr==null) {
    return defaultvalue;
  }
  return hexToColor(colorstr);
}