Package com.illumon.iris.db.tables.utils
Class DBPlot
java.lang.Object
com.illumon.iris.db.tables.utils.DBPlot
@Deprecated public class DBPlot extends Object
Deprecated.
Plotting utilities for Deephaven.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DBPlot.LiveJFreeChartWrapper
Deprecated. -
Method Summary
Modifier and Type Method Description static org.jfree.chart.JFreeChart
barChart(Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a bar chart.static org.jfree.chart.JFreeChart
barChartWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a bar chart.static org.jfree.chart.JFreeChart
businessTimeSeriesPlot(Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a business timeseries plot.static org.jfree.chart.JFreeChart
businessTimeSeriesPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a business timeseries plot.static JPanel
chartToPanel(org.jfree.chart.JFreeChart chart, boolean addShiftButtons)
Deprecated.static JPanel
chartToPanel(org.jfree.chart.JFreeChart chart, boolean addShiftButtons, DBXYDataHandler handler)
Deprecated.static org.jfree.chart.renderer.category.CategoryItemRenderer
createCategoryRenderer(com.illumon.iris.db.tables.utils.CategoricalChartType chartType, org.jfree.chart.labels.StandardCategoryToolTipGenerator toolTipGenerator, org.jfree.data.KeyToGroupMap map)
Deprecated.static void
doGroovyGridView(String title, int rows, int cols, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)
Deprecated.static void
doGroovyTabView(String title, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)
Deprecated.static Container
gridview(String title, int rows, int cols, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)
Deprecated.Opens up a few charts in a grid in a new window.static Container
gridview(String title, int rows, int cols, org.jfree.chart.JFreeChart... charts)
Deprecated.Opens up a few charts in a grid in a new window.static org.jfree.chart.JFreeChart
histogram(Table t, String title, String xLabel, String yLabel, String[] columns, int nbins)
Deprecated.Creates a histogram.static org.jfree.chart.JFreeChart
histogram(Table t, String title, String xLabel, String yLabel, String[] columns, int nbins, double xmin, double xmax)
Deprecated.Creates a histogram.static org.jfree.chart.JFreeChart
histogram(Table t, String title, String xLabel, String yLabel, String column, int nbins)
Deprecated.Creates a histogram.static org.jfree.chart.JFreeChart
histogram(Table t, String title, String xLabel, String yLabel, String column, int nbins, double xmin, double xmax)
Deprecated.Creates a histogram.static org.jfree.chart.JFreeChart
histogramBar(Table t, String title, String xLabel, String yLabel, String column, int nbins)
Deprecated.Creates a bar histogram.static org.jfree.chart.JFreeChart
histogramBar(Table t, String title, String xLabel, String yLabel, String column, int nbins, double xmin, double xmax)
Deprecated.Creates a bar histogram.static org.jfree.chart.JFreeChart
linePlot(Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a line plot.static org.jfree.chart.JFreeChart
linePlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a line plot.static void
main(String[] args)
Deprecated.static void
save(Container container, File file)
Deprecated.Saves a chart as a jpeg.static void
save(Container container, File file, double quality)
Deprecated.Saves a chart as a jpeg.static void
save(Container container, String file)
Deprecated.Saves a chart as a jpeg.static void
save(Container container, String file, double quality)
Deprecated.static void
save(org.jfree.chart.JFreeChart chart, File file)
Deprecated.Saves a chart as a jpeg.static void
save(org.jfree.chart.JFreeChart chart, File file, int width, int height, double quality)
Deprecated.Saves a chart as a jpeg.static void
save(org.jfree.chart.JFreeChart chart, String file)
Deprecated.Saves a chart as a jpeg.static void
save(org.jfree.chart.JFreeChart chart, String file, int width, int height, double quality)
Deprecated.static org.jfree.chart.JFreeChart
scatterPlot(Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a scatter plot.static org.jfree.chart.JFreeChart
scatterPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a scatter plot.static void
setGoodColorsForCategoryPlot(org.jfree.chart.JFreeChart chart)
Deprecated.Sets the colors in the chart so that they are easy to view.static void
setGoodColorsForXYPlot(org.jfree.chart.JFreeChart chart)
Deprecated.Sets the colors in the chart so that they are easy to view.static void
setScriptSessionForChartDisplay(ScriptSession scriptSessionForChartDisplay)
Deprecated.static org.jfree.chart.JFreeChart
stackedBarChart(Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a stacked bar chart.static org.jfree.chart.JFreeChart
stackedBarChartWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a stacked bar chart.static void
tabview(String title, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)
Deprecated.Opens up a few charts in tabs in a new window.static void
tabview(String title, org.jfree.chart.JFreeChart... charts)
Deprecated.Opens up a few charts in tabs in a new window.static org.jfree.chart.JFreeChart
timeSeriesPlot(Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a timeseries plot.static org.jfree.chart.JFreeChart
timeSeriesPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates a timeseries plot.static void
view(org.jfree.chart.JFreeChart chart)
Deprecated.Opens up a chart in a new window.static void
view(org.jfree.chart.JFreeChart chart, boolean addShiftButtons)
Deprecated.Opens up a chart in a new window.static org.jfree.chart.JFreeChart
xyPlot(Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates an xy plot.static org.jfree.chart.JFreeChart
xyPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)
Deprecated.Creates an xy plot.
-
Method Details
-
scatterPlot
public static org.jfree.chart.JFreeChart scatterPlot(Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a scatter plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
scatterPlotWithGrouping
public static org.jfree.chart.JFreeChart scatterPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a scatter plot.- Parameters:
categoricalColumn
- creates a series for each distinct value in this columnt
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
xyPlot
public static org.jfree.chart.JFreeChart xyPlot(Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates an xy plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
xyPlotWithGrouping
public static org.jfree.chart.JFreeChart xyPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates an xy plot.- Parameters:
categoricalColumn
- creates a series for each distinct value in this columnt
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
linePlot
public static org.jfree.chart.JFreeChart linePlot(Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a line plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
linePlotWithGrouping
public static org.jfree.chart.JFreeChart linePlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a line plot.- Parameters:
categoricalColumn
- creates a series for each distinct value in this columnt
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
barChart
public static org.jfree.chart.JFreeChart barChart(Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a bar chart.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
barChartWithGrouping
public static org.jfree.chart.JFreeChart barChartWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a bar chart.- Parameters:
categoricalColumn
- creates a series for each distinct value in this columnt
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
stackedBarChart
public static org.jfree.chart.JFreeChart stackedBarChart(Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a stacked bar chart.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
stackedBarChartWithGrouping
public static org.jfree.chart.JFreeChart stackedBarChartWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a stacked bar chart.- Parameters:
categoricalColumn
- creates a series for each distinct value in this columnt
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
timeSeriesPlot
public static org.jfree.chart.JFreeChart timeSeriesPlot(Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a timeseries plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis label (time).yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
timeSeriesPlotWithGrouping
public static org.jfree.chart.JFreeChart timeSeriesPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a timeseries plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis label (time).yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
businessTimeSeriesPlot
public static org.jfree.chart.JFreeChart businessTimeSeriesPlot(Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a business timeseries plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis label (time).yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
businessTimeSeriesPlotWithGrouping
public static org.jfree.chart.JFreeChart businessTimeSeriesPlotWithGrouping(String categoricalColumn, Table t, String title, String xLabel, String yLabel, String... series)Deprecated.Creates a business timeseries plot.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis label (time).yLabel
- y-axis label.series
- series to plot.- Returns:
- plot.
-
histogramBar
public static org.jfree.chart.JFreeChart histogramBar(Table t, String title, String xLabel, String yLabel, String column, int nbins)Deprecated.Creates a bar histogram.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis label.yLabel
- y-axis label.column
- column to plot.nbins
- number of histogram bins.- Returns:
- plot.
-
histogramBar
public static org.jfree.chart.JFreeChart histogramBar(Table t, String title, String xLabel, String yLabel, String column, int nbins, double xmin, double xmax)Deprecated.Creates a bar histogram.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.column
- column to plot.nbins
- number of histogram bins.xmin
- minimum value for the histogram.xmax
- maximum value for the histogram.- Returns:
- plot.
-
histogram
public static org.jfree.chart.JFreeChart histogram(Table t, String title, String xLabel, String yLabel, String column, int nbins)Deprecated.Creates a histogram.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.column
- column to plot.nbins
- number of histogram bins.- Returns:
- plot.
-
histogram
public static org.jfree.chart.JFreeChart histogram(Table t, String title, String xLabel, String yLabel, String column, int nbins, double xmin, double xmax)Deprecated.Creates a histogram.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis label.column
- column to plot.nbins
- number of histogram bins.xmin
- minimum value for the histogram.xmax
- maximum value for the histogram.- Returns:
- plot.
-
histogram
public static org.jfree.chart.JFreeChart histogram(Table t, String title, String xLabel, String yLabel, String[] columns, int nbins)Deprecated.Creates a histogram.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis labels.columns
- columns to plot.nbins
- number of histogram bins.- Returns:
- plot.
-
histogram
public static org.jfree.chart.JFreeChart histogram(Table t, String title, String xLabel, String yLabel, String[] columns, int nbins, double xmin, double xmax)Deprecated.Creates a histogram.- Parameters:
t
- table.title
- plot title.xLabel
- x-axis labe.yLabel
- y-axis labels.columns
- columns to plot.nbins
- number of histogram bins.xmin
- minimum value for the histogram.xmax
- maximum value for the histogram.- Returns:
- plot.
-
createCategoryRenderer
public static org.jfree.chart.renderer.category.CategoryItemRenderer createCategoryRenderer(com.illumon.iris.db.tables.utils.CategoricalChartType chartType, org.jfree.chart.labels.StandardCategoryToolTipGenerator toolTipGenerator, org.jfree.data.KeyToGroupMap map)Deprecated. -
view
public static void view(org.jfree.chart.JFreeChart chart)Deprecated.Opens up a chart in a new window.- Parameters:
chart
- chart
-
setScriptSessionForChartDisplay
Deprecated. -
view
public static void view(org.jfree.chart.JFreeChart chart, boolean addShiftButtons)Deprecated.Opens up a chart in a new window.- Parameters:
chart
- chartaddShiftButtons
- true to add buttons for traversing a zoomed-in chart; false to exclude the buttons.
-
doGroovyGridView
public static void doGroovyGridView(String title, int rows, int cols, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)Deprecated. -
doGroovyTabView
public static void doGroovyTabView(String title, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)Deprecated. -
chartToPanel
Deprecated. -
chartToPanel
public static JPanel chartToPanel(org.jfree.chart.JFreeChart chart, boolean addShiftButtons, DBXYDataHandler handler)Deprecated. -
gridview
public static Container gridview(String title, int rows, int cols, org.jfree.chart.JFreeChart... charts)Deprecated.Opens up a few charts in a grid in a new window.- Parameters:
title
- window titlerows
- rows in the gridcols
- columns in the gridcharts
- charts
-
gridview
public static Container gridview(String title, int rows, int cols, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)Deprecated.Opens up a few charts in a grid in a new window.- Parameters:
title
- window titlerows
- rows in the gridcols
- columns in the gridaddShiftButtons
- true to add buttons for traversing a zoomed-in chart; false to exclude the buttons.charts
- charts
-
tabview
Deprecated.Opens up a few charts in tabs in a new window.- Parameters:
title
- window titlecharts
- charts
-
tabview
public static void tabview(String title, boolean addShiftButtons, org.jfree.chart.JFreeChart... charts)Deprecated.Opens up a few charts in tabs in a new window.- Parameters:
title
- window titleaddShiftButtons
- true to add buttons for traversing a zoomed-in chart; false to exclude the buttons.charts
- charts
-
save
Deprecated.Saves a chart as a jpeg.- Parameters:
chart
- chartfile
- output file- Throws:
IOException
- problem saving the file
-
save
Deprecated.Saves a chart as a jpeg.- Parameters:
chart
- chartfile
- output file- Throws:
IOException
- problem saving the file
-
save
public static void save(org.jfree.chart.JFreeChart chart, String file, int width, int height, double quality) throws IOExceptionDeprecated.- Throws:
IOException
-
save
public static void save(org.jfree.chart.JFreeChart chart, File file, int width, int height, double quality) throws IOExceptionDeprecated.Saves a chart as a jpeg.- Parameters:
chart
- chartfile
- output filewidth
- image widthheight
- image heightquality
- jpeg quality (0->1)- Throws:
IOException
- problem saving the file
-
save
Deprecated.Saves a chart as a jpeg.- Parameters:
container
- chartfile
- output file- Throws:
IOException
- problem saving the file
-
save
Deprecated.Saves a chart as a jpeg.- Parameters:
container
- chartfile
- output file- Throws:
IOException
- problem saving the file
-
save
Deprecated.- Throws:
IOException
-
save
Deprecated.Saves a chart as a jpeg.- Parameters:
container
- chartfile
- output filequality
- jpeg quality (0->1)- Throws:
IOException
- problem saving the file
-
setGoodColorsForCategoryPlot
public static void setGoodColorsForCategoryPlot(org.jfree.chart.JFreeChart chart)Deprecated.Sets the colors in the chart so that they are easy to view.- Parameters:
chart
- chart
-
setGoodColorsForXYPlot
public static void setGoodColorsForXYPlot(org.jfree.chart.JFreeChart chart)Deprecated.Sets the colors in the chart so that they are easy to view.- Parameters:
chart
- chart
-
main
Deprecated.- Throws:
IOException
-