private void parseNodeString(String nodeLine){
  StringTokenizer tokenizer=new StringTokenizer(nodeLine);
  int parameters=3;
  if (nodeLine.contains("Edges:")) {
    state=PARSE_EDGES;
    return;
  }
  if (!tokenizer.hasMoreElements()) {
    return;
  }
  int nodeID=0;
  String nodeLabel="";
  int xPos=0;
  int yPos=0;
  for (int actualParam=0; tokenizer.hasMoreElements() && actualParam < parameters; actualParam++) {
    String token=tokenizer.nextToken();
switch (actualParam) {
case 0:
      nodeID=Integer.valueOf(token);
    nodeLabel=Integer.toString(nodeID);
  break;
case 1:
xPos=Integer.valueOf(token);
break;
case 2:
yPos=Integer.valueOf(token);
break;
}
}
TopologicalNode topoNode=new TopologicalNode(nodeID,nodeLabel,xPos,yPos);
graph.addNode(topoNode);
}

private void parseNodeString ( String nodeLine ) { StringTokenizer tokenizer = new StringTokenizer ( nodeLine ) ; int parameters = 3 ; if ( nodeLine . contains ( "Edges:" ) ) { state = PARSE_EDGES ; return ; } if ( ! tokenizer . hasMoreElements ( ) ) { return ; } int nodeID = 0 ; String nodeLabel = "" ; int xPos = 0 ; int yPos = 0 ; for ( int actualParam = 0 ; tokenizer . hasMoreElements ( ) && actualParam < parameters ; actualParam ++ ) { String token = tokenizer . nextToken ( ) ; switch ( actualParam ) { case 0 : nodeID = Integer . valueOf ( token ) ; nodeLabel = Integer . toString ( nodeID ) ; break ; case 1 : xPos = Integer . valueOf ( token ) ; break ; case 2 : yPos = Integer . valueOf ( token ) ; break ; } } TopologicalNode topoNode = new TopologicalNode ( nodeID , nodeLabel , xPos , yPos ) ; graph . addNode ( topoNode ) ; }
parses nodes inside a line from the brite file .
