Package io.deephaven.plot
Interface BaseFigure
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
Figure
- All Known Implementing Classes:
BaseFigureImpl
,FigureImpl
,FigureWidget
,ScatterPlotMatrix
Container for
Chart
s.-
Method Summary
Modifier and TypeMethodDescriptionchart
(int index) Returns a chart from this Figure's grid.chart
(int rowNum, int colNum) Returns a chart from this Figure's grid.figureRemoveSeries
(String... removeSeriesNames) Removes all series withnames
from this Figure.figureTitle
(String title) Sets the title of this FigurefigureTitleColor
(Paint color) Sets the color of this Figure's titlefigureTitleColor
(String color) Sets the color of this Figure's titlefigureTitleFont
(Font font) Sets the font of this Figure's titlefigureTitleFont
(String family, String style, int size) Sets the font of this Figure's titlenewChart()
Adds a newChart
to this figure.newChart
(int index) Adds a newChart
to this figure.newChart
(int rowNum, int colNum) Adds a newChart
to this figure.removeChart
(int removeChartIndex) Removes a chart from the Figure's grid.removeChart
(int removeChartRowNum, int removeChartColNum) Removes a chart from the Figure's grid.default BaseFigure
Saves the Figure as an image.default BaseFigure
Saves the Figure as an image.default BaseFigure
Saves the Figure as an image.default BaseFigure
Saves the Figure as an image.updateInterval
(long updateIntervalMillis) Sets the update interval of this Figure.
-
Method Details
-
figureRemoveSeries
Removes all series withnames
from this Figure.- Parameters:
removeSeriesNames
- series names- Returns:
- this Figure
-
updateInterval
Sets the update interval of this Figure. The plot will be redrawn at this update interval.- Parameters:
updateIntervalMillis
- update interval, in milliseconds- Returns:
- this Figure
-
figureTitle
Sets the title of this Figure- Parameters:
title
- title- Returns:
- this Figure
-
figureTitleFont
Sets the font of this Figure's title- Parameters:
font
- font- Returns:
- this Figure
-
figureTitleFont
Sets the font of this Figure's title- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Figure
-
figureTitleColor
Sets the color of this Figure's title- Parameters:
color
- color- Returns:
- this Figure
-
figureTitleColor
Sets the color of this Figure's title- Parameters:
color
- color- Returns:
- this Figure
-
newChart
Chart newChart()Adds a newChart
to this figure.- Returns:
- the new
Chart
. TheChart
is placed in the next available grid space, starting at the upper left hand corner of the grid, going left to right, top to bottom. If no available space is found in the grid:- if this Figure was created with no specified grid size, then the Figure will resize itself to add the
new
Chart
; - if not, a RuntimeException will be thrown.
- if this Figure was created with no specified grid size, then the Figure will resize itself to add the
new
- Throws:
RuntimeException
- if no space for the newChart
exists or can not be made
-
newChart
Adds a newChart
to this figure.- Parameters:
index
- index from the Figure's grid to remove. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 Figure, the indices would be [0, 1] [2, 3].- Returns:
- the new
Chart
. TheChart
is placed at the grid space indicated by theindex
. - Throws:
RuntimeException
- ifindex
is outside this Figure's grid
-
newChart
Adds a newChart
to this figure.- Parameters:
rowNum
- row index in this Figure's grid. The row index starts at 0.colNum
- column index in this Figure's grid. The column index starts at 0.- Returns:
- the new
Chart
. TheChart
is placed at the grid space [rowNum
,colNum
. - Throws:
RuntimeException
- if the coordinates are outside the Figure's grid
-
removeChart
Removes a chart from the Figure's grid.- Parameters:
removeChartIndex
- index from the Figure's grid to remove. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 Figure, the indices would be [0, 1] [2, 3].- Returns:
- this Figure with the chart removed.
-
removeChart
Removes a chart from the Figure's grid.- Parameters:
removeChartRowNum
- row index in this Figure's grid. The row index starts at 0.removeChartColNum
- column index in this Figure's grid. The column index starts at 0.- Returns:
- this Figure with the chart removed.
- Throws:
RuntimeException
- if the coordinates are outside the Figure's grid
-
chart
Returns a chart from this Figure's grid.- Parameters:
index
- index from the Figure's grid. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 Figure, the indices would be [0, 1] [2, 3].- Returns:
- selected
Chart
- Throws:
RuntimeException
- if the index is outside the Figure's grid
-
chart
Returns a chart from this Figure's grid.- Parameters:
rowNum
- row index in this Figure's grid. The row index starts at 0.colNum
- column index in this Figure's grid. The column index starts at 0.- Returns:
- selected
Chart
- Throws:
RuntimeException
- if the coordinates are outside the Figure's grid
-
save
Saves the Figure as an image.- Parameters:
path
- path where the figure is saved. Must not be null- Returns:
- figure
- Throws:
RequirementFailure
- path is null
-
save
Saves the Figure as an image.- Parameters:
path
- path where the figure is saved. Must not be nullwait
- whether to hold the calling thread until the file is writtentimeoutSeconds
- timeout in seconds to wait.- Returns:
- figure
- Throws:
RequirementFailure
- path is null
-
save
Saves the Figure as an image.- Parameters:
path
- path where the figure is saved. Must not be nullwidth
- image widthheight
- image height- Returns:
- figure
- Throws:
RequirementFailure
- path is null
-
save
Saves the Figure as an image.- Parameters:
path
- path where the figure is saved. Must not be nullwidth
- image widthheight
- image heightwait
- whether to hold the calling thread until the file is writtentimeoutSeconds
- timeout in seconds to wait.- Returns:
- figure
- Throws:
RequirementFailure
- path is null
-