private void readFigTreeBlock(Map<String,Object> settings) throws ImportException, IOException {
  String command=helper.readToken(";");
  while (!command.equalsIgnoreCase("END")) {
    if (command.equalsIgnoreCase("SET")) {
      while (helper.getLastDelimiter() != ';') {
        String key=helper.readToken("=;");
        if (helper.getLastDelimiter() != '=') {
          throw new ImportException("Subcommand, " + key + ", is missing a value in command, "+ command+ ", in FIGTREE block");
        }
        String value=helper.readToken(";");
        settings.put(key,parseValue(value));
      }
    }
 else {
      throw new ImportException("Unknown command, " + command + ", in FIGTREE block");
    }
    command=helper.readToken(";");
  }
  findEndBlock();
}

private void readFigTreeBlock ( Map < String , Object > settings ) throws ImportException , IOException { String command = helper . readToken ( ";" ) ; while ( ! command . equalsIgnoreCase ( "END" ) ) { if ( command . equalsIgnoreCase ( "SET" ) ) { while ( helper . getLastDelimiter ( ) != ';' ) { String key = helper . readToken ( "=;" ) ; if ( helper . getLastDelimiter ( ) != '=' ) { throw new ImportException ( "Subcommand, " + key + ", is missing a value in command, " + command + ", in FIGTREE block" ) ; } String value = helper . readToken ( ";" ) ; settings . put ( key , parseValue ( value ) ) ; } } else { throw new ImportException ( "Unknown command, " + command + ", in FIGTREE block" ) ; } command = helper . readToken ( ";" ) ; } findEndBlock ( ) ; }
reads a ' figtree ' block .
