public void doMouseClicked(java.awt.event.MouseEvent e){
  if (!_editor.getFlag(Editor.OPTION_CONTROLS,isControlling())) {
    return;
  }
  if (e.isMetaDown() || e.isAltDown()) {
    return;
  }
  if ((namedTurnoutWest == null) || (namedTurnoutEast == null)) {
    log.error("No turnout connection, can't process click");
    return;
  }
switch (turnoutType) {
case DOUBLESLIP:
    doDoubleSlipMouseClick();
  break;
case SINGLESLIP:
doSingleSlipMouseClick();
break;
case THREEWAY:
do3WayMouseClick();
break;
case SCISSOR:
doScissorMouseClick();
break;
default :
log.error("turnoutType value {} should not have appeared",turnoutType);
}
}

public void doMouseClicked ( java . awt . event . MouseEvent e ) { if ( ! _editor . getFlag ( Editor . OPTION_CONTROLS , isControlling ( ) ) ) { return ; } if ( e . isMetaDown ( ) || e . isAltDown ( ) ) { return ; } if ( ( namedTurnoutWest == null ) || ( namedTurnoutEast == null ) ) { log . error ( "No turnout connection, can't process click" ) ; return ; } switch ( turnoutType ) { case DOUBLESLIP : doDoubleSlipMouseClick ( ) ; break ; case SINGLESLIP : doSingleSlipMouseClick ( ) ; break ; case THREEWAY : do3WayMouseClick ( ) ; break ; case SCISSOR : doScissorMouseClick ( ) ; break ; default : log . error ( "turnoutType value {} should not have appeared" , turnoutType ) ; } }
throw the turnout when the icon is clicked
