コード例 #1
0
  private void showReportButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_showReportButtonActionPerformed

    if (pieChart == null) {
      pieChart = manipulator.buildPieChart(valuesFrequencies);
    }
    final String html =
        manipulator.getReportHTML(
            table,
            column,
            valuesFrequencies,
            pieChart,
            pieChartDialog != null ? pieChartDialog.getChartSize() : null);

    if (reportDialog != null) {
      reportDialog.dispose();
    }
    reportDialog = new SimpleHTMLReport(WindowManager.getDefault().getMainWindow(), html);
  } // GEN-LAST:event_showReportButtonActionPerformed
コード例 #2
0
  public void setup(
      AttributeColumnsManipulator m,
      AttributeTable table,
      AttributeColumn column,
      DialogControls dialogControls) {
    this.table = table;
    this.column = column;
    this.manipulator = (ColumnValuesFrequency) m;
    valuesFrequencies = manipulator.buildValuesFrequencies(table, column);

    configurePieChartButton.setEnabled(
        valuesFrequencies.size() <= ColumnValuesFrequency.MAX_PIE_CHART_CATEGORIES);
  }
コード例 #3
0
 private void configurePieChartButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_configurePieChartButtonActionPerformed
   if (pieChart == null) {
     pieChart = manipulator.buildPieChart(valuesFrequencies);
   }
   if (pieChartDialog != null) {
     pieChartDialog.setVisible(true);
   } else {
     pieChartDialog =
         new JFreeChartDialog(
             WindowManager.getDefault().getMainWindow(),
             pieChart.getTitle().getText(),
             pieChart,
             1000,
             1000);
   }
 } // GEN-LAST:event_configurePieChartButtonActionPerformed
コード例 #4
0
 public String getDisplayName() {
   return manipulator.getName();
 }