@Override public void apply(NexusStreamParser np) throws Exception {
  np.matchIgnoreCase("set edgeShape=");
  String shapeName=np.getWordMatchesIgnoringCase("angular straight curved none");
  np.matchIgnoreCase(";");
  byte shape;
  if (shapeName.equalsIgnoreCase("angular"))   shape=EdgeView.ARC_LINE_EDGE;
 else   if (shapeName.equalsIgnoreCase("straight"))   shape=EdgeView.STRAIGHT_EDGE;
 else   if (shapeName.equalsIgnoreCase("curved"))   shape=EdgeView.QUAD_EDGE;
 else   shape=0;
  if (getViewer() instanceof GraphView) {
    boolean changed=false;
    GraphView viewer=(GraphView)getViewer();
    for (    Edge e : viewer.getSelectedEdges()) {
      viewer.setShape(e,shape);
      changed=true;
    }
    if (changed) {
      viewer.repaint();
    }
  }
}

@ Override public void apply ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set edgeShape=" ) ; String shapeName = np . getWordMatchesIgnoringCase ( "angular straight curved none" ) ; np . matchIgnoreCase ( ";" ) ; byte shape ; if ( shapeName . equalsIgnoreCase ( "angular" ) ) shape = EdgeView . ARC_LINE_EDGE ; else if ( shapeName . equalsIgnoreCase ( "straight" ) ) shape = EdgeView . STRAIGHT_EDGE ; else if ( shapeName . equalsIgnoreCase ( "curved" ) ) shape = EdgeView . QUAD_EDGE ; else shape = 0 ; if ( getViewer ( ) instanceof GraphView ) { boolean changed = false ; GraphView viewer = ( GraphView ) getViewer ( ) ; for ( Edge e : viewer . getSelectedEdges ( ) ) { viewer . setShape ( e , shape ) ; changed = true ; } if ( changed ) { viewer . repaint ( ) ; } } }
parses the given command and executes it
