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.
39 lines
1.1 KiB
39 lines
1.1 KiB
2 years ago
|
package com.fr.plugin.pielinecomb;
|
||
|
|
||
|
import com.fr.design.i18n.Toolkit;
|
||
|
import com.fr.extended.chart.ExtendedTypePane;
|
||
|
|
||
|
/**
|
||
|
* @author duan.jingliang
|
||
|
* @date 2022/10/17
|
||
|
*/
|
||
|
public class PieLineCombTypePane extends ExtendedTypePane<PieLineCombChart> {
|
||
|
@Override
|
||
|
protected String[] getTypeIconPath() {
|
||
|
return new String[]{
|
||
|
"com/fr/plugin/pielinecomb/images/pie.png",
|
||
|
"com/fr/plugin/pielinecomb/images/line.png",
|
||
|
"com/fr/plugin/pielinecomb/images/comb.png"
|
||
|
};
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected String[] getTypeTipName() {
|
||
|
return new String[]{
|
||
|
Toolkit.i18nText("Plugin-Pielinecomb-Typepie"),
|
||
|
Toolkit.i18nText("Plugin-Pielinecomb-Typeline"),
|
||
|
Toolkit.i18nText("Plugin-Pielinecomb-Typecomb")
|
||
|
};
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected int getTypeIndex(PieLineCombChart pieLineCombChart) {
|
||
|
return pieLineCombChart.getChartType();
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected void setType(PieLineCombChart pieLineCombChart, int i) {
|
||
|
pieLineCombChart.setChartType(i);
|
||
|
}
|
||
|
}
|