Browse Source

CHART-2534 点地图 自定义图片标记点报错

master
zheng 6 years ago
parent
commit
e65a75cab7
  1. 3
      designer-chart/src/com/fr/van/chart/designer/component/marker/VanChartImageMarkerPane.java

3
designer-chart/src/com/fr/van/chart/designer/component/marker/VanChartImageMarkerPane.java

@ -1,6 +1,7 @@
package com.fr.van.chart.designer.component.marker; package com.fr.van.chart.designer.component.marker;
import com.fr.base.background.ImageBackground; import com.fr.base.background.ImageBackground;
import com.fr.base.background.ImageFileBackground;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.design.gui.ispinner.UISpinner; import com.fr.design.gui.ispinner.UISpinner;
@ -98,7 +99,7 @@ public class VanChartImageMarkerPane extends BasicBeanPane<VanChartAttrMarker> {
public void updateBean(VanChartAttrMarker marker) { public void updateBean(VanChartAttrMarker marker) {
marker.setCommon(false); marker.setCommon(false);
marker.setMarkerType(MarkerType.MARKER_NULL); marker.setMarkerType(MarkerType.MARKER_NULL);
ImageBackground background = (ImageBackground) imageBackgroundPane.updateBean(); ImageFileBackground background = (ImageFileBackground) imageBackgroundPane.updateBean();
background.setLayout(Constants.IMAGE_EXTEND); background.setLayout(Constants.IMAGE_EXTEND);
marker.setImageBackground(background); marker.setImageBackground(background);
marker.setWidth(width.getValue()); marker.setWidth(width.getValue());

Loading…
Cancel
Save