protected Color parseColor(String colorString) throws NumberFormatException {
  int colorSpec=Integer.parseInt(colorString,16);
  if (colorSpec < 0) {
    return OMGraphic.clear;
  }
 else {
    return new Color(colorSpec);
  }
}

protected Color parseColor ( String colorString ) throws NumberFormatException { int colorSpec = Integer . parseInt ( colorString , 16 ) ; if ( colorSpec < 0 ) { return OMGraphic . clear ; } else { return new Color ( colorSpec ) ; } }
take a string , representing the hex values for a color , and convert it to a java color .
