public CompiereColor(String type){
  if (type == null)   throw new java.lang.IllegalArgumentException(EXCEPTION_TEXT);
  if (type.equals(TYPE_FLAT) || type.equals(TYPE_GRADIENT) || type.equals(TYPE_TEXTURE)|| type.equals(TYPE_LINES)) {
    m_type=type;
  }
 else   throw new java.lang.IllegalArgumentException("Invalid Type");
}

public CompiereColor ( String type ) { if ( type == null ) throw new java . lang . IllegalArgumentException ( EXCEPTION_TEXT ) ; if ( type . equals ( TYPE_FLAT ) || type . equals ( TYPE_GRADIENT ) || type . equals ( TYPE_TEXTURE ) || type . equals ( TYPE_LINES ) ) { m_type = type ; } else throw new java . lang . IllegalArgumentException ( "Invalid Type" ) ; }
create default background colors of type
