|
|
@ -10,7 +10,6 @@ import com.fr.design.formula.TinyFormulaPane; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
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.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
|
|
|
|
|
|
|
@ -18,9 +17,9 @@ import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.event.DocumentEvent; |
|
|
|
import javax.swing.event.DocumentEvent; |
|
|
|
import javax.swing.event.DocumentListener; |
|
|
|
import javax.swing.event.DocumentListener; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class CategoryPlotReportDataContentPane extends AbstractReportDataContentPane { |
|
|
|
public class CategoryPlotReportDataContentPane extends AbstractReportDataContentPane { |
|
|
|
protected static final int PRE_WIDTH = 210; |
|
|
|
protected static final int PRE_WIDTH = 210; |
|
|
@ -35,14 +34,14 @@ public class CategoryPlotReportDataContentPane extends AbstractReportDataContent |
|
|
|
public CategoryPlotReportDataContentPane(ChartDataPane parent) { |
|
|
|
public CategoryPlotReportDataContentPane(ChartDataPane parent) { |
|
|
|
initEveryPane(); |
|
|
|
initEveryPane(); |
|
|
|
categoryName = initCategoryBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Category_Name")); |
|
|
|
categoryName = initCategoryBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Category_Name")); |
|
|
|
categoryName.setPreferredSize(new Dimension(246,30)); |
|
|
|
categoryName.setPreferredSize(new Dimension(236,30)); |
|
|
|
categoryName.setBorder(BorderFactory.createEmptyBorder(0,24,0,7)); |
|
|
|
categoryName.setBorder(BorderFactory.createEmptyBorder(0,24,0,20)); |
|
|
|
this.add(categoryName, "0,0,2,0"); |
|
|
|
this.add(categoryName, "0,0,1,0"); |
|
|
|
filterPane = new ChartDataFilterPane(new Bar2DPlot(), parent); |
|
|
|
filterPane = new ChartDataFilterPane(new Bar2DPlot(), parent); |
|
|
|
JPanel panel = TableLayout4VanChartHelper.createExpandablePaneWithTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Data_Filter"),filterPane); |
|
|
|
JPanel panel = TableLayout4VanChartHelper.createExpandablePaneWithTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Data_Filter"),filterPane); |
|
|
|
panel.setBorder(getSidesBorder()); |
|
|
|
panel.setBorder(getSidesBorder()); |
|
|
|
filterPane.setBorder(getFilterPaneBorder()); |
|
|
|
filterPane.setBorder(getFilterPaneBorder()); |
|
|
|
this.add(panel, "0,6,2,4"); } |
|
|
|
this.add(panel, "0,6,1,4"); } |
|
|
|
|
|
|
|
|
|
|
|
protected TinyFormulaPane initCategoryBox(final String leftLabel) { |
|
|
|
protected TinyFormulaPane initCategoryBox(final String leftLabel) { |
|
|
|
TinyFormulaPane categoryName = new TinyFormulaPane() { |
|
|
|
TinyFormulaPane categoryName = new TinyFormulaPane() { |
|
|
|