Пример #1
0
  private void displayData() {
    _chart.update(_currentAccumulator, _currentSorter, _currentOrderer, _groups);

    String title =
        String.format(
            _titleFormat, _currentAccumulator.getDescription(), _currentSorter.getDescription());
    setTitle(title);

    String value = "";

    for (int i = 0; i < _groups.size(); i++) {
      IGroup g = _groups.get(i);
      value += g.getDescription() + ": " + _currentAccumulator.getDisplayValue(g.getValue()) + "\n";
    }

    ((TextView) findViewById(R.id.TMP_group_display)).setText(value);
  }
Пример #2
0
 private void reSort() {
   _groups = _currentSorter.sort(_activityCache);
 }