private static void init(){
  encoders=new HashMap();
  encoders.put("jpeg","org.jfree.chart.encoders.SunJPEGEncoderAdapter");
  encoders.put("png","org.jfree.chart.encoders.SunPNGEncoderAdapter");
}

private static void init ( ) { encoders = new HashMap ( ) ; encoders . put ( "jpeg" , "org.jfree.chart.encoders.SunJPEGEncoderAdapter" ) ; encoders . put ( "png" , "org.jfree.chart.encoders.SunPNGEncoderAdapter" ) ; }
sets up default encoders ( uses sun png encoder if jdk 1 . 4 + and the sunpngencoderadapter class is available ) .
