public JFreeChartRender setStyle ( int style ) { switch ( style ) { case JFreeChartRender . STYLE_THESIS : return this . setBaseShapesVisible ( true ) . setBaseShapesFilled ( false ) . setBaseLinesVisible ( false ) . setLegendItemFont ( new Font ( "Dialog" , Font . PLAIN , 9 ) ) . setBackgroundPaint ( Color . white ) . setGridPaint ( Color . gray ) . setInsertLast ( false ) . removeLegend ( ) ; case JFreeChartRender . STYLE_THESIS_LEGEND : return this . setBaseShapesVisible ( true ) . setBaseShapesFilled ( false ) . setBaseLinesVisible ( false ) . setLegendItemFont ( new Font ( "Dialog" , Font . PLAIN , 9 ) ) . setBackgroundPaint ( Color . white ) . setGridPaint ( Color . gray ) . setInsertLast ( false ) ; default : return this ; } }
Applies prepared style to a chart .