|
|
|
@ -3,7 +3,6 @@ package com.fr.design.mainframe.theme.preview;
|
|
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
|
import com.fr.base.background.ColorBackground; |
|
|
|
|
import com.fr.base.theme.FormTheme; |
|
|
|
|
import com.fr.chart.base.ChartConstants; |
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
import com.fr.chart.chartattr.Title; |
|
|
|
|
import com.fr.chart.chartdata.NormalChartData; |
|
|
|
@ -19,17 +18,19 @@ import com.fr.plugin.chart.attr.axis.VanChartAxis;
|
|
|
|
|
import com.fr.plugin.chart.base.AttrLabel; |
|
|
|
|
import com.fr.plugin.chart.base.VanChartTools; |
|
|
|
|
import com.fr.plugin.chart.column.VanChartColumnPlot; |
|
|
|
|
import com.fr.plugin.chart.type.GradientType; |
|
|
|
|
import com.fr.plugin.chart.type.RadiusType; |
|
|
|
|
import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import java.awt.AlphaComposite; |
|
|
|
|
import java.awt.Composite; |
|
|
|
|
import java.awt.Graphics2D; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Color; |
|
|
|
|
import java.awt.Composite; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.Graphics2D; |
|
|
|
|
import java.awt.geom.Rectangle2D; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -124,7 +125,7 @@ public class FormThemePreviewPane extends TemplateThemePreviewPane<FormTheme> {
|
|
|
|
|
plot.getConditionCollection().getDefaultAttr().addDataSeriesCondition(defaultAttrLabel); |
|
|
|
|
|
|
|
|
|
plot.getLegend().setPosition(Constants.TOP); |
|
|
|
|
plot.setPlotStyle(ChartConstants.STYLE_NONE); |
|
|
|
|
plot.getGradientStyle().setGradientType(GradientType.NONE); |
|
|
|
|
plot.setSeriesOverlapPercent(30); |
|
|
|
|
plot.setCategoryIntervalPercent(30); |
|
|
|
|
|
|
|
|
@ -178,7 +179,7 @@ public class FormThemePreviewPane extends TemplateThemePreviewPane<FormTheme> {
|
|
|
|
|
|
|
|
|
|
PiePlot4VanChart plot = chart.getPlot(); |
|
|
|
|
plot.getLegend().setPosition(Constants.BOTTOM); |
|
|
|
|
plot.setPlotStyle(ChartConstants.STYLE_NONE); |
|
|
|
|
plot.getGradientStyle().setGradientType(GradientType.NONE); |
|
|
|
|
plot.setInnerRadiusPercent(75); |
|
|
|
|
plot.getRadius().setRadiusType(RadiusType.FIXED); |
|
|
|
|
plot.getRadius().setRadius(80); |
|
|
|
|