Example #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());
 }
Example #2
0
 /**
  * Set the label
  *
  * @param n The name of the station model
  */
 public void setName(String n) {
   // Make sure we got the label
   getLabelComponent();
   if (nameLabel != null) {
     nameLabel.setText(n);
   }
 }