修改字體
//X軸下標字體大小及顏色 Axis axis1 = plot.getDomainAxis(); axis1.setLabelFont(new Font("sansserf",Font.PLAIN,30));//字體 axis1.setLabelPaint(Color.white);//顏色 //X軸的字體顏色 Axis axis = plot.getDomainAxis(); axis.setTickLabelFont(new Font("Serif", Font.PLAIN,25));//字體 axis.setTickLabelPaint(Color.white);//顏色 //Y軸字下標字體大小及顏色 Axis axis2 = plot.getRangeAxis(); axis2.setLabelFont(new Font("Serif", Font.PLAIN, 30));//字體 axis2.setLabelPaint(Color.white); //顏色 //Y軸字體及顏色 Axis axis3 = plot.getRangeAxis(); axis3.setTickLabelFont(new Font("Serif", Font.PLAIN, 25));//字體 axis3.setTickLabelPaint(Color.white);//顏色
posted on 2008-01-14 12:10 菠蘿 閱讀(249) 評論(0) 編輯 收藏 所屬分類: JFreeChart