|
|
@ -1,18 +1,20 @@ |
|
|
|
package com.fr.design.mainframe.chart.gui.data.report; |
|
|
|
package com.fr.design.mainframe.chart.gui.data.report; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineLayoutBuilder; |
|
|
|
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.chartattr.MeterPlot; |
|
|
|
import com.fr.chart.chartattr.MeterPlot; |
|
|
|
import com.fr.chart.chartdata.MeterReportDefinition; |
|
|
|
import com.fr.chart.chartdata.MeterReportDefinition; |
|
|
|
|
|
|
|
import com.fr.design.border.FineBorderFactory; |
|
|
|
|
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
import com.fr.design.formula.DefaultTinyFormulaPane; |
|
|
|
import com.fr.design.formula.DefaultTinyFormulaPane; |
|
|
|
import com.fr.design.formula.TinyFormulaPane; |
|
|
|
import com.fr.design.formula.TinyFormulaPane; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.chart.gui.ChartDataPane; |
|
|
|
import com.fr.design.mainframe.chart.gui.ChartDataPane; |
|
|
|
import com.fr.design.mainframe.chart.gui.data.ChartDataFilterPane; |
|
|
|
import com.fr.design.mainframe.chart.gui.data.ChartDataFilterPane; |
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
@ -37,31 +39,15 @@ public class MeterPlotReportDataContentPane extends AbstractReportDataContentPan |
|
|
|
private ChartDataFilterPane filterPane; |
|
|
|
private ChartDataFilterPane filterPane; |
|
|
|
|
|
|
|
|
|
|
|
public MeterPlotReportDataContentPane(ChartDataPane parent) { |
|
|
|
public MeterPlotReportDataContentPane(ChartDataPane parent) { |
|
|
|
// initEveryPane();
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// List list = new ArrayList();
|
|
|
|
|
|
|
|
// list.add(new Object[] { singCateName, "" });
|
|
|
|
|
|
|
|
// list.add(new Object[] { singNeedleValue, "" });
|
|
|
|
|
|
|
|
// seriesPane.populateBean(list);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// seriesPane.noAddUse();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
|
|
|
double[] columnSize = {p, f}; |
|
|
|
|
|
|
|
double[] rowSize = getRowSize(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Component[][] components = getShowComponents(); |
|
|
|
Component[][] components = getShowComponents(); |
|
|
|
|
|
|
|
|
|
|
|
JPanel panel = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, 24, 6); |
|
|
|
JPanel panel = FineLayoutBuilder.compatibleTableLayout(10, components, new double[]{1.2, 3}); |
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(0, 24, 5, 8)); |
|
|
|
panel.setBorder(BorderFactory.createCompoundBorder(FineBorderFactory.createDefaultUnderlineBorder(), |
|
|
|
|
|
|
|
new ScaledEmptyBorder(0, 0, 10, 0))); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.add(panel, BorderLayout.NORTH); |
|
|
|
this.add(panel, BorderLayout.NORTH); |
|
|
|
filterPane = new ChartDataFilterPane(new MeterPlot(), parent); |
|
|
|
filterPane = new ChartDataFilterPane(new MeterPlot(), parent); |
|
|
|
JPanel pane = TableLayout4VanChartHelper.createExpandablePaneWithTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Data_Filter"), filterPane); |
|
|
|
JPanel pane = new UIExpandablePane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Data_Filter"), filterPane); |
|
|
|
pane.setBorder(getSidesBorder()); |
|
|
|
|
|
|
|
filterPane.setBorder(getFilterPaneBorder()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.add(pane, BorderLayout.CENTER); |
|
|
|
this.add(pane, BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
|