类 PlotUtil


  • public class PlotUtil
    extends java.lang.Object
    作者:
    yaqiang
    • 构造器概要

      构造器 
      构造器 说明
      PlotUtil()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static Chart createScatterPlot​(java.lang.String title, java.lang.String xAxisLabel, java.lang.String yAxisLabel, XYDataset dataset)
      Create scatter plot
      static void exportToPicture​(java.lang.String fileName, Chart chart, int width, int height)
      Save chart as PNG image file
      static XYDataset getXYDataset​(StationData xdata, StationData ydata, java.lang.String seriesKey)
      Get XYDataset from two StationData
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • PlotUtil

        public PlotUtil()
    • 方法详细资料

      • getXYDataset

        public static XYDataset getXYDataset​(StationData xdata,
                                             StationData ydata,
                                             java.lang.String seriesKey)
        Get XYDataset from two StationData
        参数:
        xdata - X station data
        ydata - Y station data
        seriesKey - Series key
        返回:
        XYDataset XYDataset
      • createScatterPlot

        public static Chart createScatterPlot​(java.lang.String title,
                                              java.lang.String xAxisLabel,
                                              java.lang.String yAxisLabel,
                                              XYDataset dataset)
        Create scatter plot
        参数:
        title - Title
        xAxisLabel - X axis label
        yAxisLabel - Y axis label
        dataset - XYDataset
        返回:
        JFreeChart
      • exportToPicture

        public static void exportToPicture​(java.lang.String fileName,
                                           Chart chart,
                                           int width,
                                           int height)
                                    throws java.io.FileNotFoundException,
                                           java.lang.InterruptedException
        Save chart as PNG image file
        参数:
        fileName - The file name
        chart - The chart
        width - Width
        height - Heigth
        抛出:
        java.io.FileNotFoundException
        java.lang.InterruptedException