if ((((LegNode)leg).getLegType () == DGPSPConstants.LEG_TYPE_TRANSPORTING) || (((LegNode)leg).getLegType () == DGPSPConstants.LEG_TYPE_POSITIONING))
if ((((LegNode)leg).getLegType () == DGPSPConstants.LEG_TYPE_TRANSPORTING) || (((LegNode)leg).getLegType () == DGPSPConstants.LEG_TYPE_POSITIONING)) {
  protected void setLegColor (Node leg, Lozenge loz) {    switch( leg.getMode() ) {    case Node.MODE_GROUND:      loz.setForeground(TPFDDColor.TPFDDDullerYellow);      break;    case Node.MODE_SEA:      loz.setForeground(TPFDDColor.TPFDDGreen);      // These are the only legs for which we know carrier names right now      break;    case Node.MODE_AIR:      if ((((LegNode)leg).getLegType () == DGPSPConstants.LEG_TYPE_TRANSPORTING) ||	  (((LegNode)leg).getLegType () == DGPSPConstants.LEG_TYPE_POSITIONING))	loz.setForeground(TPFDDColor.TPFDDBlue);      else	loz.setForeground(Color.orange);      break;    case Node.MODE_AGGREGATE:      loz.setForeground(TPFDDColor.TPFDDPurple);      break;    case Node.MODE_UNKNOWN:      loz.setForeground(Color.gray);      break;    default:      loz.setForeground(Color.red);    }  }