|
|
@ -3,7 +3,6 @@ package com.fr.van.chart.custom; |
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
import com.fr.chart.base.DataSeriesCondition; |
|
|
|
import com.fr.chart.base.DataSeriesCondition; |
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
import com.fr.chart.chartglyph.ConditionCollection; |
|
|
|
import com.fr.chart.chartglyph.ConditionCollection; |
|
|
@ -11,9 +10,7 @@ import com.fr.chartx.attr.ChartProvider; |
|
|
|
import com.fr.chartx.data.AbstractDataDefinition; |
|
|
|
import com.fr.chartx.data.AbstractDataDefinition; |
|
|
|
import com.fr.chartx.data.ChartDataDefinitionProvider; |
|
|
|
import com.fr.chartx.data.ChartDataDefinitionProvider; |
|
|
|
import com.fr.chartx.data.CustomChartDataDefinition; |
|
|
|
import com.fr.chartx.data.CustomChartDataDefinition; |
|
|
|
import com.fr.design.ChartTypeInterfaceManager; |
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.chart.gui.type.ChartImagePane; |
|
|
|
import com.fr.design.mainframe.chart.gui.type.ChartImagePane; |
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
@ -39,6 +36,9 @@ import java.util.HashMap; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.column; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by Mitisky on 16/2/16. |
|
|
|
* Created by Mitisky on 16/2/16. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -88,22 +88,9 @@ public class VanChartCustomPlotPane extends AbstractVanChartTypePane { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initContent() { |
|
|
|
private void initContent() { |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autoPane = new JPanel(); |
|
|
|
autoPane = new JPanel(); |
|
|
|
|
|
|
|
|
|
|
|
customSelectPane = new VanChartCustomPlotSelectPane(); |
|
|
|
customSelectPane = new VanChartCustomPlotSelectPane(); |
|
|
|
|
|
|
|
customPane = column(LayoutConstants.VERTICAL_GAP, cell(new JSeparator()), cell(customSelectPane)).getComponent(); |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
|
|
|
new Component[]{new JSeparator()}, |
|
|
|
|
|
|
|
new Component[]{customSelectPane} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double[] columnSize = {p, f}; |
|
|
|
|
|
|
|
double[] rowSize = {p, p}; |
|
|
|
|
|
|
|
customPane = TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
contentPane = new JPanel(new CardLayout()) { |
|
|
|
contentPane = new JPanel(new CardLayout()) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Dimension getPreferredSize() { |
|
|
|
public Dimension getPreferredSize() { |
|
|
|