You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.9 KiB
56 lines
1.9 KiB
package com.fr.plugin.chart.bar; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
import com.fr.design.beans.BasicBeanPane; |
|
import com.fr.design.condition.ConditionAttributesPane; |
|
import com.fr.design.gui.frpane.AttributeChangeListener; |
|
import com.fr.design.mainframe.chart.AbstractChartAttrPane; |
|
import com.fr.design.mainframe.chart.gui.ChartStylePane; |
|
import com.fr.design.mainframe.chart.gui.type.AbstractChartTypePane; |
|
import com.fr.plugin.chart.column.VanChartColumnConditionPane; |
|
import com.fr.plugin.chart.column.VanChartColumnSeriesPane; |
|
import com.fr.plugin.chart.designer.other.VanChartOtherPane; |
|
import com.fr.plugin.chart.designer.style.VanChartStylePane; |
|
import com.fr.plugin.chart.vanchart.AbstractMultiCategoryVanChartUI; |
|
|
|
/** |
|
* Created by Mitisky on 15/10/20. |
|
*/ |
|
public class BarIndependentVanChartInterface extends AbstractMultiCategoryVanChartUI { |
|
@Override |
|
public String getIconPath() { |
|
return "com/fr/design/images/form/toolbar/bar.png"; |
|
} |
|
|
|
@Override |
|
public AbstractChartTypePane getPlotTypePane() { |
|
return new VanChartBarPlotPane(); |
|
} |
|
|
|
public ConditionAttributesPane getPlotConditionPane(Plot plot){ |
|
return new VanChartColumnConditionPane(plot); |
|
} |
|
|
|
public BasicBeanPane<Plot> getPlotSeriesPane(ChartStylePane parent, Plot plot){ |
|
return new VanChartColumnSeriesPane(parent, plot); |
|
} |
|
|
|
/** |
|
* 图表的属性界面数组 |
|
* @return 属性界面 |
|
*/ |
|
public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener){ |
|
VanChartStylePane stylePane = new VanChartBarStylePane(listener); |
|
VanChartOtherPane otherPane = new VanChartOtherPane(); |
|
return new AbstractChartAttrPane[]{stylePane, otherPane}; |
|
} |
|
|
|
/** |
|
* plot面板的标题 |
|
* 插件兼容 |
|
*/ |
|
public String getPlotTypeTitle4PopupWindow(){ |
|
return VanChartBarPlotPane.TITLE; |
|
} |
|
|
|
} |