|
|
@ -7,7 +7,13 @@ import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
import com.fr.chart.chartglyph.ConditionCollection; |
|
|
|
import com.fr.chart.chartglyph.ConditionCollection; |
|
|
|
import com.fr.chartx.attr.ZoomAttribute; |
|
|
|
import com.fr.chartx.attr.ZoomAttribute; |
|
|
|
|
|
|
|
import com.fr.chartx.data.AbstractDataDefinition; |
|
|
|
|
|
|
|
import com.fr.chartx.data.ChartDataDefinitionProvider; |
|
|
|
|
|
|
|
import com.fr.chartx.data.field.AbstractColumnFieldCollection; |
|
|
|
|
|
|
|
import com.fr.chartx.data.field.diff.BubbleColumnFieldCollection; |
|
|
|
|
|
|
|
import com.fr.chartx.data.field.diff.MultiCategoryColumnFieldCollection; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.attr.plot.VanChartPlot; |
|
|
|
import com.fr.plugin.chart.base.VanChartTools; |
|
|
|
import com.fr.plugin.chart.base.VanChartTools; |
|
|
|
import com.fr.plugin.chart.bubble.BubbleIndependentVanChart; |
|
|
|
import com.fr.plugin.chart.bubble.BubbleIndependentVanChart; |
|
|
|
import com.fr.plugin.chart.bubble.VanChartBubblePlot; |
|
|
|
import com.fr.plugin.chart.bubble.VanChartBubblePlot; |
|
|
@ -112,6 +118,7 @@ public class VanChartBubblePlotPane extends AbstractVanChartTypePane { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 气泡图相同图表类型之间切换的时候,chart的部分属性也需要重置 |
|
|
|
* 气泡图相同图表类型之间切换的时候,chart的部分属性也需要重置 |
|
|
|
|
|
|
|
* |
|
|
|
* @param chart |
|
|
|
* @param chart |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -120,4 +127,18 @@ public class VanChartBubblePlotPane extends AbstractVanChartTypePane { |
|
|
|
//重置监控刷新选项
|
|
|
|
//重置监控刷新选项
|
|
|
|
resetRefreshMoreLabelAttr((VanChart) chart); |
|
|
|
resetRefreshMoreLabelAttr((VanChart) chart); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected boolean acceptDefinition(ChartDataDefinitionProvider definition, VanChartPlot vanChartPlot) { |
|
|
|
|
|
|
|
if (definition instanceof AbstractDataDefinition) { |
|
|
|
|
|
|
|
AbstractColumnFieldCollection columnFieldCollection = ((AbstractDataDefinition) definition).getColumnFieldCollection(); |
|
|
|
|
|
|
|
boolean isForce = ((VanChartBubblePlot) vanChartPlot).isForceBubble(); |
|
|
|
|
|
|
|
if (isForce) { |
|
|
|
|
|
|
|
return columnFieldCollection instanceof MultiCategoryColumnFieldCollection; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return columnFieldCollection instanceof BubbleColumnFieldCollection; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|