public void displayState(int state){
  if (getNamedTurnout() == null) {
    log.debug("Display state " + state + ", disconnected");
  }
 else {
    if (_status != null && _iconMaps != null) {
      NamedIcon icon=getIcon(_status,state);
      if (icon != null) {
        super.setIcon(icon);
      }
    }
  }
  super.displayState(state);
  updateSize();
}

public void displayState ( int state ) { if ( getNamedTurnout ( ) == null ) { log . debug ( "Display state " + state + ", disconnected" ) ; } else { if ( _status != null && _iconMaps != null ) { NamedIcon icon = getIcon ( _status , state ) ; if ( icon != null ) { super . setIcon ( icon ) ; } } } super . displayState ( state ) ; updateSize ( ) ; }
drive the current state of the display from the state of the turnout and status of track .
