@ -1,11 +1,11 @@
package com.fr.van.chart.designer.other.condition.item ;
package com.fr.van.chart.designer.other.condition.item ;
import com.fr.chart.base.ChartConstants ;
import com.fr.chart.base.DataSeriesCondition ;
import com.fr.chart.base.DataSeriesCondition ;
import com.fr.chart.chartattr.Plot ;
import com.fr.chart.chartattr.Plot ;
import com.fr.design.condition.ConditionAttributesPane ;
import com.fr.design.condition.ConditionAttributesPane ;
import com.fr.plugin.chart.attr.plot.VanChartPlot ;
import com.fr.plugin.chart.base.AttrAreaSeriesFillColorBackground ;
import com.fr.plugin.chart.base.AttrAreaSeriesFillColorBackground ;
import com.fr.plugin.chart.type.GradientType ;
import com.fr.van.chart.designer.component.VanChartAreaSeriesFillColorPane ;
import com.fr.van.chart.designer.component.VanChartAreaSeriesFillColorPane ;
import javax.swing.JPanel ;
import javax.swing.JPanel ;
@ -40,6 +40,7 @@ public class VanChartAreaFillColorConditionPane extends AbstractNormalMultiLine
/ * *
/ * *
* 条件属性item的名称
* 条件属性item的名称
*
* @return item的名称
* @return item的名称
* /
* /
public String nameForPopupMenuItem ( ) {
public String nameForPopupMenuItem ( ) {
@ -54,13 +55,13 @@ public class VanChartAreaFillColorConditionPane extends AbstractNormalMultiLine
public void setDefault ( ) {
public void setDefault ( ) {
//下面这句话是给各组件一个默认值
//下面这句话是给各组件一个默认值
fillColorBackground . populate ( new AttrAreaSeriesFillColorBackground ( ) ) ;
fillColorBackground . populate ( new AttrAreaSeriesFillColorBackground ( ) ) ;
fillColorBackground . checkoutAlpha ( ! ( plot ! = null & & plot . getPlotStyle ( ) = = ChartConstants . STYLE_SHADE ) ) ;
fillColorBackground . checkoutAlpha ( plot ! = null & & ( ( VanChartPlot ) plot ) . getGradientStyle ( ) . getGradientType ( ) = = GradientType . NONE ) ;
}
}
public void populate ( DataSeriesCondition condition ) {
public void populate ( DataSeriesCondition condition ) {
if ( condition instanceof AttrAreaSeriesFillColorBackground ) {
if ( condition instanceof AttrAreaSeriesFillColorBackground ) {
fillColorBackground . populate ( ( AttrAreaSeriesFillColorBackground ) condition ) ;
fillColorBackground . populate ( ( AttrAreaSeriesFillColorBackground ) condition ) ;
fillColorBackground . checkoutAlpha ( ! ( plot ! = null & & plot . getPlotStyle ( ) = = ChartConstants . STYLE_SHADE ) ) ;
fillColorBackground . checkoutAlpha ( plot ! = null & & ( ( VanChartPlot ) plot ) . getGradientStyle ( ) . getGradientType ( ) = = GradientType . NONE ) ;
}
}
}
}