Beispiel #1
0
 /**
  * Ovedrride the method so we can set the highlight label
  *
  * @param g Highlighted glyph
  */
 public void setHighlight(Glyph g) {
   super.setHighlight(g);
   if ((g == null) || !(g instanceof MetSymbol)) {
     highlightLabel.setText("   ");
     return;
   }
   highlightLabel.setText(" " + ((MetSymbol) g).getLabel());
 }