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.
63 lines
1.9 KiB
63 lines
1.9 KiB
package com.fr.plugin.third.party.jsdggac; |
|
|
|
import com.fanruan.api.design.chart.*; |
|
import com.fr.design.gui.frpane.AttributeChangeListener; |
|
import com.fr.plugin.third.party.jsdggac.data.CustomGanttDataCellFieldsPane; |
|
import com.fr.plugin.third.party.jsdggac.data.CustomGanttDataSetFieldsPane; |
|
import com.fr.plugin.third.party.jsdggac.ui.CustomGanttTypePane; |
|
import com.fr.plugin.third.party.jsdggac.ui.CustomStylePane; |
|
|
|
public class CustomChartUI extends BaseChartTypeUI { |
|
public String CHART_NAME = "矿场热力图"; |
|
|
|
@Override |
|
public DefaultTypePane getPlotTypePane() { |
|
return new CustomGanttTypePane(); |
|
} |
|
|
|
@Override |
|
public BaseDataPane getChartDataPane(AttributeChangeListener listener) { |
|
return new BaseDataPane(listener) { |
|
@Override |
|
protected SingleDataPane createSingleDataPane() { |
|
return new SingleDataPane(new CustomGanttDataSetFieldsPane(), |
|
new CustomGanttDataCellFieldsPane() |
|
); |
|
} |
|
}; |
|
} |
|
|
|
@Override |
|
public BaseOtherPane[] getAttrPaneArray(AttributeChangeListener listener) { |
|
return new BaseOtherPane[]{ |
|
//new CustomGanttTitlePane(), |
|
new CustomStylePane(), |
|
// new CustomGanttShowSettingsPane(), |
|
// new VanChartStylePane(listener), |
|
new DefaultOtherPane()}; |
|
} |
|
|
|
@Override |
|
public String getIconPath() { |
|
return "com/fr/plugin/third/party/jsdggac/images/chart_icon.png"; |
|
} |
|
|
|
@Override |
|
public String getName() { |
|
return CHART_NAME; |
|
} |
|
|
|
@Override |
|
public String[] getSubName() { |
|
return new String[]{ |
|
CHART_NAME |
|
}; |
|
} |
|
|
|
@Override |
|
public String[] getDemoImagePath() { |
|
return new String[]{ |
|
"com/fr/plugin/third/party/jsdggac/images/chart_type_demo.png" |
|
}; |
|
} |
|
}
|
|
|