Esempio n. 1
0
  /**
   * Get all Entry objects at the given index across all DataSets. INFORMATION: This method does
   * calculations at runtime. Do not over-use in performance critical situations.
   *
   * @param xIndex
   * @return
   */
  public List<Entry> getEntriesAtIndex(int xIndex) {

    List<Entry> vals = new ArrayList<Entry>();

    for (int i = 0; i < mData.getDataSetCount(); i++) {

      IDataSet set = mData.getDataSetByIndex(i);

      Entry e = set.getEntryForXIndex(xIndex);

      if (e != null) {
        vals.add(e);
      }
    }

    return vals;
  }