|
|
@ -4,6 +4,7 @@ import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.charttypes.ChartTypeManager; |
|
|
|
import com.fr.chart.charttypes.ChartTypeManager; |
|
|
|
import com.fr.chartx.attr.ChartProvider; |
|
|
|
import com.fr.chartx.attr.ChartProvider; |
|
|
|
import com.fr.design.ChartTypeInterfaceManager; |
|
|
|
import com.fr.design.ChartTypeInterfaceManager; |
|
|
|
|
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
import com.fr.design.beans.FurtherBasicBeanPane; |
|
|
|
import com.fr.design.beans.FurtherBasicBeanPane; |
|
|
|
import com.fr.design.dialog.BasicScrollPane; |
|
|
|
import com.fr.design.dialog.BasicScrollPane; |
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
@ -173,7 +174,7 @@ public class ChartTypePane extends AbstractChartAttrPane { |
|
|
|
Map<Integer, Map<String, FurtherBasicBeanPane<? extends ChartProvider>>> allChartTypePane, |
|
|
|
Map<Integer, Map<String, FurtherBasicBeanPane<? extends ChartProvider>>> allChartTypePane, |
|
|
|
ActionListener autoButtonListener) { |
|
|
|
ActionListener autoButtonListener) { |
|
|
|
|
|
|
|
|
|
|
|
String[] chartIDs = ChartTypeManager.getInstance().getAllChartIDsIncludeDisabled(); |
|
|
|
String[] chartIDs = ChartTypeManager.getInstance().getAllChartIDs(); |
|
|
|
|
|
|
|
|
|
|
|
for (String id : chartIDs) { |
|
|
|
for (String id : chartIDs) { |
|
|
|
|
|
|
|
|
|
|
@ -288,7 +289,9 @@ public class ChartTypePane extends AbstractChartAttrPane { |
|
|
|
Map.Entry<String, FurtherBasicBeanPane<? extends ChartProvider>> entry = iterator.next(); |
|
|
|
Map.Entry<String, FurtherBasicBeanPane<? extends ChartProvider>> entry = iterator.next(); |
|
|
|
String plotID = entry.getKey(); |
|
|
|
String plotID = entry.getKey(); |
|
|
|
if (ignore || ChartTypeManager.enabledChart(plotID)) { |
|
|
|
if (ignore || ChartTypeManager.enabledChart(plotID)) { |
|
|
|
cards.add(entry.getValue()); |
|
|
|
if (ChartTypeManager.getInstance().isShowInDesigner(plotID)) { |
|
|
|
|
|
|
|
cards.add(entry.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -310,7 +313,9 @@ public class ChartTypePane extends AbstractChartAttrPane { |
|
|
|
|
|
|
|
|
|
|
|
//第一步就是重构cards
|
|
|
|
//第一步就是重构cards
|
|
|
|
cards.clear(); |
|
|
|
cards.clear(); |
|
|
|
if (enabledChart) { |
|
|
|
if (DesignModeContext.isDuchampMode()) { |
|
|
|
|
|
|
|
addOnePlotIDCards(priority, chartID); |
|
|
|
|
|
|
|
} else if (enabledChart) { |
|
|
|
if (collection.getChartCount() == 1) { |
|
|
|
if (collection.getChartCount() == 1) { |
|
|
|
addAllCards(); |
|
|
|
addAllCards(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|