Browse Source

CHART-13786 解决共用静态变量导致的自动标记点显示问题

feature/big-screen
Qinghui.Liu 5 years ago
parent
commit
3f974adefd
  1. 11
      designer-chart/src/main/java/com/fr/van/chart/designer/component/marker/VanChartCommonMarkerPane.java

11
designer-chart/src/main/java/com/fr/van/chart/designer/component/marker/VanChartCommonMarkerPane.java

@ -53,18 +53,19 @@ public class VanChartCommonMarkerPane extends BasicBeanPane<VanChartAttrMarker>
return normalMarkers; return normalMarkers;
} }
private static Marker[] normalMarkersWithAuto = null;
protected static Marker[] getNormalMarkersWithAuto() { protected static Marker[] getNormalMarkersWithAuto() {
if (normalMarkers == null) { if (normalMarkersWithAuto == null) {
normalMarkers = new Marker[NORMAL_TYPES.length + 1]; normalMarkersWithAuto = new Marker[NORMAL_TYPES.length + 1];
normalMarkers[0] = Marker.createMarker(MarkerType.MARKER_AUTO); normalMarkersWithAuto[0] = Marker.createMarker(MarkerType.MARKER_AUTO);
int i = 1; int i = 1;
for (MarkerType markerType : NORMAL_TYPES) { for (MarkerType markerType : NORMAL_TYPES) {
normalMarkers[i++] = Marker.createMarker(markerType); normalMarkersWithAuto[i++] = Marker.createMarker(markerType);
} }
} }
return normalMarkers; return normalMarkersWithAuto;
} }
//没有无这个选项 //没有无这个选项

Loading…
Cancel
Save