public Object clone(){
  SyntaxScheme shcs=null;
  try {
    shcs=(SyntaxScheme)super.clone();
  }
 catch (  CloneNotSupportedException cnse) {
    cnse.printStackTrace();
    return null;
  }
  shcs.styles=new Style[Token.NUM_TOKEN_TYPES];
  for (int i=0; i < Token.NUM_TOKEN_TYPES; i++) {
    Style s=styles[i];
    if (s != null) {
      shcs.styles[i]=(Style)s.clone();
    }
  }
  return shcs;
}

public Object clone ( ) { SyntaxScheme shcs = null ; try { shcs = ( SyntaxScheme ) super . clone ( ) ; } catch ( CloneNotSupportedException cnse ) { cnse . printStackTrace ( ) ; return null ; } shcs . styles = new Style [ Token . NUM_TOKEN_TYPES ] ; for ( int i = 0 ; i < Token . NUM_TOKEN_TYPES ; i ++ ) { Style s = styles [ i ] ; if ( s != null ) { shcs . styles [ i ] = ( Style ) s . clone ( ) ; } } return shcs ; }
returns a deep copy of this color scheme .
