|
|
|
@ -4,6 +4,7 @@ import com.fr.chart.chartattr.ChartCollection;
|
|
|
|
|
import com.fr.chart.charttypes.ChartTypeManager; |
|
|
|
|
import com.fr.chartx.attr.ChartProvider; |
|
|
|
|
import com.fr.design.ChartTypeInterfaceManager; |
|
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
|
import com.fr.design.beans.FurtherBasicBeanPane; |
|
|
|
|
import com.fr.design.dialog.BasicScrollPane; |
|
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
@ -18,6 +19,7 @@ import com.fr.design.mainframe.chart.gui.item.FlexibleComboBox;
|
|
|
|
|
import com.fr.design.mainframe.chart.gui.item.ItemEventType; |
|
|
|
|
import com.fr.design.mainframe.chart.gui.type.AbstractChartTypePane; |
|
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
|
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditMode; |
|
|
|
|
import com.fr.design.module.DesignModuleFactory; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
@ -173,7 +175,7 @@ public class ChartTypePane extends AbstractChartAttrPane {
|
|
|
|
|
Map<Integer, Map<String, FurtherBasicBeanPane<? extends ChartProvider>>> allChartTypePane, |
|
|
|
|
ActionListener autoButtonListener) { |
|
|
|
|
|
|
|
|
|
String[] chartIDs = ChartTypeManager.getInstance().getAllChartIDsIncludeDisabled(); |
|
|
|
|
String[] chartIDs = ChartTypeManager.getInstance().getAllChartIDs(); |
|
|
|
|
|
|
|
|
|
for (String id : chartIDs) { |
|
|
|
|
|
|
|
|
@ -288,7 +290,9 @@ public class ChartTypePane extends AbstractChartAttrPane {
|
|
|
|
|
Map.Entry<String, FurtherBasicBeanPane<? extends ChartProvider>> entry = iterator.next(); |
|
|
|
|
String plotID = entry.getKey(); |
|
|
|
|
if (ignore || ChartTypeManager.enabledChart(plotID)) { |
|
|
|
|
cards.add(entry.getValue()); |
|
|
|
|
if (ChartTypeManager.getInstance().isShowInDesigner(plotID)) { |
|
|
|
|
cards.add(entry.getValue()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -310,7 +314,9 @@ public class ChartTypePane extends AbstractChartAttrPane {
|
|
|
|
|
|
|
|
|
|
//第一步就是重构cards
|
|
|
|
|
cards.clear(); |
|
|
|
|
if (enabledChart) { |
|
|
|
|
if (ChartEditContext.duchampMode()) { |
|
|
|
|
addOnePlotIDCards(priority, chartID); |
|
|
|
|
} else if (enabledChart) { |
|
|
|
|
if (collection.getChartCount() == 1) { |
|
|
|
|
addAllCards(); |
|
|
|
|
} else { |
|
|
|
|