예제 #1
0
  /**
   * Receive shared-data updates.
   *
   * @param from The {@link ucar.unidata.collab.Sharable} object from which this event originates.
   * @param dataId The shared data identifier.
   * @param data The shared data.
   */
  public void receiveShareData(Sharable from, Object dataId, Object[] data) {

    if (!(dataId.equals(SHARE_POSITION))) {
      super.receiveShareData(from, dataId, data); // pass it up
    } else {
      if (probe == null) {
        return;
      }

      try {

        /*
         * The following fires a PropertyChangeEvent for the
         * probe position.
         */
        probe.setPosition((RealTuple) data[0]);
      } catch (Exception ex) {
        logException("receiveShareData:" + dataId, ex);
      }
    }
  }