@ -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 ;
@ -173,7 +174,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,9 +289,11 @@ public class ChartTypePane extends AbstractChartAttrPane {
Map . Entry < String , FurtherBasicBeanPane < ? extends ChartProvider > > entry = iterator . next ( ) ;
String plotID = entry . getKey ( ) ;
if ( ignore | | ChartTypeManager . enabledChart ( plotID ) ) {
if ( ChartTypeManager . getInstance ( ) . isShowInDesigner ( plotID ) ) {
cards . add ( entry . getValue ( ) ) ;
}
}
}
}
@ -310,7 +313,9 @@ public class ChartTypePane extends AbstractChartAttrPane {
//第一步就是重构cards
cards . clear ( ) ;
if ( enabledChart ) {
if ( DesignModeContext . isDuchampMode ( ) ) {
addOnePlotIDCards ( priority , chartID ) ;
} else if ( enabledChart ) {
if ( collection . getChartCount ( ) = = 1 ) {
addAllCards ( ) ;
} else {