用Jfreechart生成曲线图,图的下方是数据的图例, Y轴 是价格 

|  
|    各种商品的时间价格曲线 


|-------------------------> 时间 
红色=苹果  蓝色=桔子 ...          --------------->这就是图例 
请问,使用Jfreechart中的哪个类的,哪个方法,可以调整图例字体的大小?我使用的是createTimeSeriesChart图。在线等待答复,谢谢

解决方案 »

  1.   

    CategoryPlot categoryplot = (CategoryPlot) jfreechart.getPlot();
    CategoryAxis domainAxis = categoryplot.getDomainAxis(); 
    Font font=new Font("黑体",50,50);
    domainAxis.setLabelFont(font);
      

  2.   

    MyEclipse有智能提示功能
    你多试试
    然后看看
    再看下API就很能解决问题了
      

  3.   


    CategoryAxis domainAxis = plot.getDomainAxis();
    domainAxis.setLabelFont(new Font("宋体", Font.PLAIN, 18));
      

  4.   

    大家都没说清楚,是Legend()类里面的setItemFont方法。看来这论坛人气不行,回答问题都准确。