1 11 12 package org.eclipse.birt.chart.examples.api.script.java; 13 14 import org.eclipse.birt.chart.model.component.Label; 15 import org.eclipse.birt.chart.model.component.Series; 16 import org.eclipse.birt.chart.script.ChartEventHandlerAdapter; 17 import org.eclipse.birt.chart.script.IChartScriptContext; 18 19 public class SeriesTitleScript extends ChartEventHandlerAdapter 20 { 21 22 29 public void beforeDrawSeriesTitle( Series series, Label label, 30 IChartScriptContext icsc ) 31 { 32 label.setVisible( true ); 33 label.getCaption( ).setValue( "Cities" ); label.getCaption( ).getColor( ).set( 222, 32, 182 ); 35 series.getLabel( ).getCaption( ).getColor( ).set( 12, 232, 182 ); 36 } 37 38 } 39 | Popular Tags |