Browse Source

还原

feature/big-screen
shine 4 years ago
parent
commit
2b32641bae
  1. 7
      designer-chart/src/main/java/com/fr/design/chartx/data/map/MapChartDataPane.java

7
designer-chart/src/main/java/com/fr/design/chartx/data/map/MapChartDataPane.java

@ -10,6 +10,7 @@ import com.fr.design.chartx.fields.diff.PointMapCellDataFieldsPane;
import com.fr.design.chartx.fields.diff.PointMapDataSetFieldsPane; import com.fr.design.chartx.fields.diff.PointMapDataSetFieldsPane;
import com.fr.design.chartx.single.SingleDataPane; import com.fr.design.chartx.single.SingleDataPane;
import com.fr.design.gui.frpane.AttributeChangeListener; import com.fr.design.gui.frpane.AttributeChangeListener;
import com.fr.plugin.chart.map.VanChartMapPlot;
import com.fr.plugin.chart.type.MapType; import com.fr.plugin.chart.type.MapType;
import com.fr.van.chart.map.designer.VanMapAreaPointAndLineGroupPane; import com.fr.van.chart.map.designer.VanMapAreaPointAndLineGroupPane;
@ -32,7 +33,11 @@ public class MapChartDataPane extends AbstractChartDataPane<MapChartDataDefiniti
@Override @Override
protected JPanel createContentPane() { protected JPanel createContentPane() {
MapType mapType = MapType.CUSTOM; MapType mapType = MapType.AREA;
if (this.getVanChart() != null) {
VanChartMapPlot mapPlot = this.getVanChart().getPlot();
mapType = mapPlot == null ? mapType : mapPlot.getMapType();
}
AreaMapDataSetFieldsPane areaMapDataSetFieldsPane; AreaMapDataSetFieldsPane areaMapDataSetFieldsPane;
PointMapDataSetFieldsPane pointMapDataSetFieldsPane; PointMapDataSetFieldsPane pointMapDataSetFieldsPane;

Loading…
Cancel
Save