|
|
|
@ -3,9 +3,11 @@ package com.fr.van.chart.custom;
|
|
|
|
|
import com.fr.base.chart.chartdata.TopDefinitionProvider; |
|
|
|
|
import com.fr.chart.base.DataSeriesCondition; |
|
|
|
|
import com.fr.chart.chartattr.Chart; |
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
|
import com.fr.chart.chartglyph.ConditionCollection; |
|
|
|
|
import com.fr.chartx.attr.ChartProvider; |
|
|
|
|
import com.fr.chartx.data.AbstractDataDefinition; |
|
|
|
|
import com.fr.chartx.data.ChartDataDefinitionProvider; |
|
|
|
|
import com.fr.chartx.data.CustomChartDataDefinition; |
|
|
|
@ -56,17 +58,27 @@ public class VanChartCustomPlotPane extends AbstractVanChartTypePane {
|
|
|
|
|
//自定义和自动版面的容器,cardLayOut布局
|
|
|
|
|
private JPanel contentPane; |
|
|
|
|
|
|
|
|
|
public String title4PopupWindow() { |
|
|
|
|
//todo:check下组合图类
|
|
|
|
|
return ChartEditContext.duchampMode() ? ChartTypeInterfaceManager.TYPE_PANE_DEFAULT_TITLE : super.title4PopupWindow(); |
|
|
|
|
} |
|
|
|
|
@Override |
|
|
|
|
public boolean visible(ChartProvider chart) { |
|
|
|
|
if (ChartEditContext.duchampMode() && chart instanceof VanChart) { |
|
|
|
|
Plot plot = ((VanChart) chart).getPlot(); |
|
|
|
|
|
|
|
|
|
if (plot instanceof VanChartCustomPlot) { |
|
|
|
|
CustomStyle customStyle = ((VanChartCustomPlot) plot).getCustomStyle(); |
|
|
|
|
return customStyle == CustomStyle.CUSTOM; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return super.visible(chart); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Component[][] getPaneComponents(JPanel typePane) { |
|
|
|
|
|
|
|
|
|
initContent(); |
|
|
|
|
|
|
|
|
|
return new Component[][]{ |
|
|
|
|
return ChartEditContext.duchampMode() ? new Component[][]{ |
|
|
|
|
new Component[]{contentPane}, |
|
|
|
|
new Component[]{buttonPane}, |
|
|
|
|
}: new Component[][]{ |
|
|
|
|
new Component[]{typePane}, |
|
|
|
|
new Component[]{stylePane}, |
|
|
|
|
new Component[]{contentPane}, |
|
|
|
|