Browse Source

CHART-2525 词云 形状图片

master
zheng 7 years ago
parent
commit
b8477e1fa5
  1. 3
      designer-chart/src/com/fr/van/chart/wordcloud/designer/style/VanChartWordCloudSeriesPane.java

3
designer-chart/src/com/fr/van/chart/wordcloud/designer/style/VanChartWordCloudSeriesPane.java

@ -2,6 +2,7 @@ package com.fr.van.chart.wordcloud.designer.style;
import com.fr.base.Utils; import com.fr.base.Utils;
import com.fr.base.background.ImageBackground; import com.fr.base.background.ImageBackground;
import com.fr.base.background.ImageFileBackground;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.design.gui.ibutton.UIButtonGroup; import com.fr.design.gui.ibutton.UIButtonGroup;
import com.fr.design.gui.icombobox.UIComboBox; import com.fr.design.gui.icombobox.UIComboBox;
@ -153,7 +154,7 @@ public class VanChartWordCloudSeriesPane extends VanChartAbstractPlotSeriesPane
CloudShapeType type = (CloudShapeType)cloudShape.getSelectedItem(); CloudShapeType type = (CloudShapeType)cloudShape.getSelectedItem();
String path = type.getImageUrl(); String path = type.getImageUrl();
if(path != null) { if(path != null) {
ImageBackground imageBackground = new ImageBackground(IOUtils.readImage(path)); ImageFileBackground imageBackground = new ImageFileBackground(IOUtils.readImage(path));
imageBackgroundQuickPane.populateBean(imageBackground); imageBackgroundQuickPane.populateBean(imageBackground);
} else { } else {
imageBackgroundQuickPane.populateBean(new ImageBackground()); imageBackgroundQuickPane.populateBean(new ImageBackground());

Loading…
Cancel
Save