Package org.eobjects.datacleaner.widgets.table

Examples of org.eobjects.datacleaner.widgets.table.CrosstabPanel


        _windowContext, _rendererFactory);

    Crosstab<Number> columnStatisticsCrosstab = result.getColumnStatisticsCrosstab();
    Crosstab<Number> valueCombinationCrosstab = result.getValueCombinationCrosstab();

    CrosstabPanel columnStatisticsPanel = crosstabResultSwingRenderer.renderInternal(new CrosstabResult(
        columnStatisticsCrosstab), true);
    if (valueCombinationCrosstab == null) {
      return columnStatisticsPanel;
    }

    CrosstabPanel valueCombinationPanel = crosstabResultSwingRenderer.renderInternal(new CrosstabResult(
        valueCombinationCrosstab), true);

    DCPanel panel = new DCPanel();
    panel.setLayout(new VerticalLayout(4));
View Full Code Here


        "This renderer is programmatically invoked, don't register it in the descriptor catalog.");
  }

  @Override
  public JComponent render(CrosstabResult result) {
    final CrosstabPanel crosstabPanel = super.renderInternal(result, false);
    final DCTable table = crosstabPanel.getTable();
    if (isInitiallyCharted(table) || isTooLimitedToChart(table)) {
      return crosstabPanel;
    }

    final DCPanel headerPanel = new DCPanel();
    headerPanel.setLayout(new FlowLayout(Alignment.RIGHT.getFlowLayoutAlignment(), 1, 1));

    final JButton chartButton = new JButton("Show distribution chart", ImageManager.getInstance().getImageIcon(
        "images/chart-types/bar.png"));
    chartButton.setMargin(new Insets(1, 1, 1, 1));
    chartButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        headerPanel.setVisible(false);
        displayChart(table, crosstabPanel.getDisplayChartCallback());
      }
    });

    headerPanel.add(chartButton);
View Full Code Here

  protected CrosstabPanel renderInternal(R result, boolean allowAnimations) {
    _drillToDetailsCallback = new DrillToDetailsCallbackImpl(_windowContext, getRendererFactory());

    final DCTable table = renderTable(result.getCrosstab());

    final CrosstabPanel crosstabPanel = new CrosstabPanel(table, allowAnimations);

    decorate(result, table, crosstabPanel.getDisplayChartCallback());

    // make the first column packed to fit it's size.
    table.packColumn(0, 2);

    return crosstabPanel;
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.widgets.table.CrosstabPanel

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.