个性化阅读
专注于IT技术分析

ChartUtilities类

点击下载
  • ChartUtilities类位于JFreeChart库的org.jfree.chart包下。
  • 该类也称为“ ChartUtils类”。
  • 就像ChartFactory类一样, 此类具有许多静态方法。
  • 此类中提供的大多数方法都将图表转换为图像格式或基本HTML图像映射。

构造函数:

建设者 描述
ChartUtils( ) 这是ChartUtilities类的默认构造函数

方法摘要:

方法 描述
encodeAsPNG(BufferedImage image) 此方法将BufferedImage编码为PNG格式。
getImageMap(String name, ChartRenderingInfo info) 此方法创建一个HTML图像映射。
saveChartAsJPEG(File file, float quality, JFreeChart chart, int width, int height) 此方法将图表保存为JPEG格式的文件。
saveChartAsPNG(File file, JFreeChart chart, int width, int height) 此方法将图表以PNG格式保存到指定文件。
writeChartAsJPEG(OutputStream out, float quality, JFreeChart chart, int width, int height) 此方法将图表以JPEG格式写入输出流。
writeImageMap(PrintWriter writer, String name, ChartRenderingInfo info, boolean useOverLibForToolTips) 此方法将图像映射写入输出流。
writeScaledChartAsPNG(OutputStream out, JFreeChart chart, int width, int height, int widthScaleFactor, int heightScaleFactor) 此方法将图表的缩放版本以PNG格式写入输出流。
赞(0)
未经允许不得转载:srcmini » ChartUtilities类

评论 抢沙发

评论前必须登录!