Esempio n. 1
0
  /**
   * Attaches to a provided DataChannel.
   *
   * @since 3.1
   */
  protected void attachToChannel(DataChannel channel) {
    if (channel == null) {
      throw new NullPointerException("Null channel");
    }

    setChannel(channel);
    setEntityResolver(channel.getEntityResolver());
  }
Esempio n. 2
0
  public void addData(DataChannel c) {
    try {
      int col = 1;
      addLabel(lineOffset, 0, c.toString() + " Time (ms)");
      addLabel(lineOffset + 1, 0, c.toString() + " Value");

      for (Object o : c.getSeries().getItems()) {
        XYDataItem i = (XYDataItem) o;
        addNumber(lineOffset, col, i.getXValue());
        addNumber(lineOffset + 1, col, i.getYValue());
        col++;
      }
    } catch (RowsExceededException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (WriteException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    lineOffset += 2;
  }
Esempio n. 3
0
 /**
  * Returns EventManager associated with the ObjectStore.
  *
  * @since 1.2
  */
 @Override
 public EventManager getEventManager() {
   return channel != null ? channel.getEventManager() : null;
 }