public void hiliteLabel(Node v,NodeData data){
  NodeView nv=viewer.getNV(v);
  if (nv.getLocation() == null)   return;
  Point apt=nv.getLabelPosition(viewer.trans);
  if (apt == null)   return;
  gc.setColor(ProgramProperties.SELECTION_COLOR_ADDITIONAL_TEXT);
  if (!nv.getLabelVisible() && nv.getLabel() != null) {
    gc.setFont(nv.getFont());
    gc.drawString(nv.getLabel(),apt.x,apt.y);
  }
  if (data.getSummarized().length > 1 || (data.getSummarized().length == 1 && data.getSummarized()[0] > 0)) {
    gc.setFont(selectionFont);
    StringBuilder buf=new StringBuilder();
    if (data.getCountAssigned() > 0) {
      buf.append("Ass=");
      for (      int value : data.getAssigned()) {
        buf.append(String.format("%,d  ",value));
      }
      gc.drawString(buf.toString(),apt.x,apt.y+=14);
    }
    buf=new StringBuilder();
    buf.append("Sum=");
    for (    int value : data.getSummarized()) {
      buf.append(String.format("%,d  ",value));
    }
    gc.drawString(buf.toString(),apt.x,apt.y+=12);
  }
  if (data.getUpPValue() != -1) {
    gc.drawString("UPv=" + (float)data.getUpPValue(),apt.x,apt.y+=12);
  }
  if (data.getDownPValue() != -1) {
    gc.drawString("DPv=" + (float)data.getDownPValue(),apt.x,apt.y+=12);
  }
}

public void hiliteLabel ( Node v , NodeData data ) { NodeView nv = viewer . getNV ( v ) ; if ( nv . getLocation ( ) == null ) return ; Point apt = nv . getLabelPosition ( viewer . trans ) ; if ( apt == null ) return ; gc . setColor ( ProgramProperties . SELECTION_COLOR_ADDITIONAL_TEXT ) ; if ( ! nv . getLabelVisible ( ) && nv . getLabel ( ) != null ) { gc . setFont ( nv . getFont ( ) ) ; gc . drawString ( nv . getLabel ( ) , apt . x , apt . y ) ; } if ( data . getSummarized ( ) . length > 1 || ( data . getSummarized ( ) . length == 1 && data . getSummarized ( ) [ 0 ] > 0 ) ) { gc . setFont ( selectionFont ) ; StringBuilder buf = new StringBuilder ( ) ; if ( data . getCountAssigned ( ) > 0 ) { buf . append ( "Ass=" ) ; for ( int value : data . getAssigned ( ) ) { buf . append ( String . format ( "%,d  " , value ) ) ; } gc . drawString ( buf . toString ( ) , apt . x , apt . y += 14 ) ; } buf = new StringBuilder ( ) ; buf . append ( "Sum=" ) ; for ( int value : data . getSummarized ( ) ) { buf . append ( String . format ( "%,d  " , value ) ) ; } gc . drawString ( buf . toString ( ) , apt . x , apt . y += 12 ) ; } if ( data . getUpPValue ( ) != - 1 ) { gc . drawString ( "UPv=" + ( float ) data . getUpPValue ( ) , apt . x , apt . y += 12 ) ; } if ( data . getDownPValue ( ) != - 1 ) { gc . drawString ( "DPv=" + ( float ) data . getDownPValue ( ) , apt . x , apt . y += 12 ) ; } }
hilite the node label
