Package com.illumon.iris.db.plot
Interface BaseFigure
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
Figure
- All Known Implementing Classes:
BaseFigureImpl
,FigureImpl
,FigureWidget
,ScatterPlotMatrix
public interface BaseFigure extends Serializable
Container for
Chart
s.-
Method Summary
Modifier and Type Method Description Chart
chart(int index)
Returns a chart from this Figure's grid.Chart
chart(int rowNum, int colNum)
Returns a chart from this Figure's grid.BaseFigure
figureRemoveSeries(String... names)
Removes all series withnames
from this Figure.BaseFigure
figureTitle(String title)
Sets the title of this FigureBaseFigure
figureTitleColor(Paint color)
Sets the color of this Figure's titleBaseFigure
figureTitleColor(String color)
Sets the color of this Figure's titleBaseFigure
figureTitleFont(Font font)
Sets the font of this Figure's titleBaseFigure
figureTitleFont(String family, String style, int size)
Sets the font of this Figure's titleChart
newChart()
Adds a newChart
to this figure.Chart
newChart(int index)
Adds a newChart
to this figure.Chart
newChart(int rowNum, int colNum)
Adds a newChart
to this figure.BaseFigure
removeChart(int index)
Removes a chart from the Figure's grid.BaseFigure
removeChart(int rowNum, int colNum)
Removes a chart from the Figure's grid.default BaseFigure
save(String saveLocation)
Saves the Figure as an image.BaseFigure
save(String saveLocation, boolean wait, long timeoutSeconds)
Saves the Figure as an image.default BaseFigure
save(String saveLocation, int width, int height)
Saves the Figure as an image.BaseFigure
save(String saveLocation, int width, int height, boolean wait, long timeoutSeconds)
Saves the Figure as an image.BaseFigure
theme(Theme theme)
Sets theTheme
of this FigureBaseFigure
theme(String theme)
Sets theTheme
of this FigureBaseFigure
updateInterval(long updateIntervalMillis)
Sets the update interval of this Figure.
-
Method Details
-
figureRemoveSeries
Removes all series withnames
from this Figure.- Parameters:
names
- series names- Returns:
- this Figure
-
theme
Sets theTheme
of this Figure- Parameters:
theme
- theme- Returns:
- this Figure
-
theme
Sets theTheme
of this Figure- Parameters:
theme
- theme name- 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:
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:
- this Figure with the chart removed.
-
removeChart
Removes a chart from the 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:
- 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 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:
- 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:
saveLocation
- save location. Must not be null- Returns:
- figure
- Throws:
com.fishlib.base.verify.RequirementFailure
- saveLocation is null
-
save
Saves the Figure as an image.- Parameters:
saveLocation
- save location. Must not be nullwait
- whether to hold the calling thread until the file is writtentimeoutSeconds
- timeout in seconds to wait.- Returns:
- figure
- Throws:
com.fishlib.base.verify.RequirementFailure
- saveLocation is null
-
save
Saves the Figure as an image.- Parameters:
saveLocation
- save location. Must not be nullwidth
- image widthheight
- image height- Returns:
- figure
- Throws:
com.fishlib.base.verify.RequirementFailure
- saveLocation is null
-
save
Saves the Figure as an image.- Parameters:
saveLocation
- save location. 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:
com.fishlib.base.verify.RequirementFailure
- saveLocation is null
-