Package org.fusesource.ide.commons.ui.chart

Examples of org.fusesource.ide.commons.ui.chart.TableChartOptions


    table.setColumnOrder(newColumnOrder);
  }

  @Override
  protected TableChartOptions createChartOptions() {
    TableChartOptions options = new TableChartOptions();
    Tree table = viewer.getTree();
    for (int i = 0, size = table.getColumnCount(); i < size; i++) {
      CellLabelProvider labelProvider = getCellLabelProvider(i);
      Class<?> returnType = Objects.getReturnType(labelProvider);
      if (Objects.isNumberType(returnType)) {
        TreeColumn column = table.getColumn(i);
        options.addNumericColumn(new TableChartColumnInfo(column, labelProvider));
      }
    }
    return options;
  }
View Full Code Here


    comparator.setDefaultSortColumn(idx);
  }

  @Override
  protected TableChartOptions createChartOptions() {
    TableChartOptions options = new TableChartOptions();
    Table table = viewer.getTable();
    for (int i = 0, size = table.getColumnCount(); i < size; i++) {
      CellLabelProvider labelProvider = getCellLabelProvider(i);
      Class<?> returnType = Objects.getReturnType(labelProvider);
      if (Objects.isNumberType(returnType)) {
        TableColumn column = table.getColumn(i);
        options.addNumericColumn(new TableChartColumnInfo(column, labelProvider));
      }
    }
    return options;
  }
View Full Code Here

TOP

Related Classes of org.fusesource.ide.commons.ui.chart.TableChartOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.