1 11 12 package org.eclipse.birt.chart.examples.api.script.java; 13 14 import org.eclipse.birt.chart.model.component.Series; 15 import org.eclipse.birt.chart.model.component.impl.CurveFittingImpl; 16 import org.eclipse.birt.chart.render.ISeriesRenderer; 17 import org.eclipse.birt.chart.script.ChartEventHandlerAdapter; 18 import org.eclipse.birt.chart.script.IChartScriptContext; 19 20 public class SeriesScript extends ChartEventHandlerAdapter 21 { 22 23 30 public void beforeDrawSeries( Series series, ISeriesRenderer isr, 31 IChartScriptContext icsc ) 32 { 33 series.setCurveFitting( CurveFittingImpl.create( ) ); 34 series.getLabel( ).getCaption( ).getColor( ).set( 12, 232, 182 ); 35 } 36 37 } 38 | Popular Tags |