public boolean isSignalMastAssignedAnywhere(SignalMast signalMast){
  for (  PositionablePoint po : layoutEditor.pointList) {
    if ((po.getEastBoundSignalMast() != null) && po.getEastBoundSignalMast() == signalMast) {
      return true;
    }
    if ((po.getWestBoundSignalMast() != null) && po.getWestBoundSignalMast() == signalMast) {
      return true;
    }
  }
  for (  LayoutTurnout to : layoutEditor.turnoutList) {
    if ((to.getSignalAMast() != null) && to.getSignalDMast() == signalMast) {
      return true;
    }
    if ((to.getSignalBMast() != null) && to.getSignalDMast() == signalMast) {
      return true;
    }
    if ((to.getSignalCMast() != null) && to.getSignalDMast() == signalMast) {
      return true;
    }
    if ((to.getSignalDMast() != null) && to.getSignalDMast() == signalMast) {
      return true;
    }
  }
  for (  LayoutSlip to : layoutEditor.slipList) {
    if ((to.getSignalAMast() != null) && to.getSignalDMast() == signalMast) {
      return true;
    }
    if ((to.getSignalBMast() != null) && to.getSignalDMast() == signalMast) {
      return true;
    }
    if ((to.getSignalCMast() != null) && to.getSignalDMast() == signalMast) {
      return true;
    }
    if ((to.getSignalDMast() != null) && to.getSignalDMast() == signalMast) {
      return true;
    }
  }
  for (  LevelXing x : layoutEditor.xingList) {
    if ((x.getSignalAMast() != null) && x.getSignalAMast() == signalMast) {
      return true;
    }
    if ((x.getSignalBMast() != null) && x.getSignalAMast() == signalMast) {
      return true;
    }
    if ((x.getSignalCMast() != null) && x.getSignalAMast() == signalMast) {
      return true;
    }
    if ((x.getSignalDMast() != null) && x.getSignalAMast() == signalMast) {
      return true;
    }
  }
  return false;
}

public boolean isSignalMastAssignedAnywhere ( SignalMast signalMast ) { for ( PositionablePoint po : layoutEditor . pointList ) { if ( ( po . getEastBoundSignalMast ( ) != null ) && po . getEastBoundSignalMast ( ) == signalMast ) { return true ; } if ( ( po . getWestBoundSignalMast ( ) != null ) && po . getWestBoundSignalMast ( ) == signalMast ) { return true ; } } for ( LayoutTurnout to : layoutEditor . turnoutList ) { if ( ( to . getSignalAMast ( ) != null ) && to . getSignalDMast ( ) == signalMast ) { return true ; } if ( ( to . getSignalBMast ( ) != null ) && to . getSignalDMast ( ) == signalMast ) { return true ; } if ( ( to . getSignalCMast ( ) != null ) && to . getSignalDMast ( ) == signalMast ) { return true ; } if ( ( to . getSignalDMast ( ) != null ) && to . getSignalDMast ( ) == signalMast ) { return true ; } } for ( LayoutSlip to : layoutEditor . slipList ) { if ( ( to . getSignalAMast ( ) != null ) && to . getSignalDMast ( ) == signalMast ) { return true ; } if ( ( to . getSignalBMast ( ) != null ) && to . getSignalDMast ( ) == signalMast ) { return true ; } if ( ( to . getSignalCMast ( ) != null ) && to . getSignalDMast ( ) == signalMast ) { return true ; } if ( ( to . getSignalDMast ( ) != null ) && to . getSignalDMast ( ) == signalMast ) { return true ; } } for ( LevelXing x : layoutEditor . xingList ) { if ( ( x . getSignalAMast ( ) != null ) && x . getSignalAMast ( ) == signalMast ) { return true ; } if ( ( x . getSignalBMast ( ) != null ) && x . getSignalAMast ( ) == signalMast ) { return true ; } if ( ( x . getSignalCMast ( ) != null ) && x . getSignalAMast ( ) == signalMast ) { return true ; } if ( ( x . getSignalDMast ( ) != null ) && x . getSignalAMast ( ) == signalMast ) { return true ; } } return false ; }
returns true if the specified signalmast is assigned to an object on the panel , regardless of whether an icon is displayed or not
