|
|
|
@ -17,6 +17,7 @@ import com.fr.design.utils.gui.GUICoreUtils;
|
|
|
|
|
import com.fr.design.utils.gui.UIComponentUtils; |
|
|
|
|
import com.fr.design.widget.FRWidgetFactory; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
|
import com.fr.plugin.chart.VanChartAttrHelper; |
|
|
|
|
import com.fr.plugin.chart.base.AttrBorderWithAlpha; |
|
|
|
|
import com.fr.plugin.chart.base.AttrEffect; |
|
|
|
@ -30,6 +31,7 @@ import com.fr.plugin.chart.map.line.condition.AttrCurve;
|
|
|
|
|
import com.fr.plugin.chart.map.line.condition.AttrLineEffect; |
|
|
|
|
import com.fr.plugin.chart.type.MapMarkerType; |
|
|
|
|
import com.fr.plugin.chart.type.MapType; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.van.chart.bubble.component.VanChartBubblePane; |
|
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
|
import com.fr.van.chart.designer.component.border.VanChartBorderWithAlphaPane; |
|
|
|
@ -173,18 +175,29 @@ public class VanChartMapSeriesPane extends VanChartColorValueSeriesPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void checkPointCompsEnabledWithLarge(Plot plot) { |
|
|
|
|
boolean largeModel = largeModel(plot); |
|
|
|
|
if (pointEffectPane != null) { |
|
|
|
|
GUICoreUtils.setEnabled(pointEffectPane, !largeModel); |
|
|
|
|
checkPointEffectPane(plot); |
|
|
|
|
|
|
|
|
|
if (markerTypeCom == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
VanChartMapPlot mapPlot = (VanChartMapPlot) plot; |
|
|
|
|
boolean largeModel = largeModel(plot); |
|
|
|
|
refreshMarkerComboboxModel(mapPlot); |
|
|
|
|
if (largeModel) { |
|
|
|
|
checkLargeModelPlotSelectedItem(mapPlot); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void checkPointEffectPane(Plot plot) { |
|
|
|
|
if (pointEffectPane != null) { |
|
|
|
|
boolean largeModel = largeModel(plot); |
|
|
|
|
boolean imageMark = markerTypeCom == null ? false : |
|
|
|
|
StringUtils.equals(MapMarkerType.IMAGE.toLocalString(), GeneralUtils.objectToString(markerTypeCom.getSelectedItem())); |
|
|
|
|
GUICoreUtils.setEnabled(pointEffectPane, !largeModel && !imageMark); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void checkLineCompsEnabledWithLarge(Plot plot) { |
|
|
|
|
if (lineMapEffectPane != null) { |
|
|
|
|
//大数据模式 恢复用注释。下面1行删除。
|
|
|
|
@ -479,6 +492,7 @@ public class VanChartMapSeriesPane extends VanChartColorValueSeriesPane {
|
|
|
|
|
@Override |
|
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
|
markerTypeLayout.show(markerContentPane, (String) markerTypeCom.getSelectedItem()); |
|
|
|
|
checkPointEffectPane(plot); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|