public interface BaseFigure extends Serializable
Chart
s.Modifier and Type | Method and Description |
---|---|
Chart |
chart(int index)
Gets the chart at the
index from this Figure's grid. |
Chart |
chart(int rowNum,
int colNum)
Gets the chart at the[
rowNum , colNum from this Figure's grid. |
BaseFigure |
figureRemoveSeries(String... names)
Removes all series with
names from this Figure. |
BaseFigure |
figureTitle(String title)
Sets the title of this Figure
|
BaseFigure |
figureTitleColor(com.illumon.iris.gui.color.Paint color)
Sets the color of this Figure's title
|
BaseFigure |
figureTitleColor(String color)
Sets the color of this Figure's title
|
BaseFigure |
figureTitleFont(Font font)
Sets the font of this Figure's title
|
BaseFigure |
figureTitleFont(String family,
String style,
int size)
Sets the font of this Figure's title
|
Chart |
newChart()
Adds a new
Chart to this figure. |
Chart |
newChart(int index)
Adds a new
Chart to this figure. |
Chart |
newChart(int rowNum,
int colNum)
Adds a new
Chart to this figure. |
BaseFigure |
removeChart(int index)
Removes the chart at the
index from this Figure's grid. |
BaseFigure |
removeChart(int rowNum,
int colNum)
Removes the chart at the[
rowNum , colNum from this Figure's grid. |
BaseFigure |
save(String saveLocation)
Saves the Figure as an image to the specified
saveLocation . |
BaseFigure |
save(String saveLocation,
int width,
int height)
Saves the Figure as an image to the specified
saveLocation . |
BaseFigure |
theme(String theme)
Sets the
Theme of this Figure |
BaseFigure |
theme(Theme theme)
Sets the
Theme of this Figure |
BaseFigure |
updateInterval(long updateIntervalMillis)
Sets the update interval of this Figure.
|
BaseFigure figureRemoveSeries(String... names)
names
from this Figure.names
- series namesBaseFigure theme(Theme theme)
Theme
of this Figuretheme
- themeBaseFigure theme(String theme)
Theme
of this Figuretheme
- theme nameBaseFigure updateInterval(long updateIntervalMillis)
updateIntervalMillis
- update interval, in millisecondsBaseFigure figureTitle(String title)
title
- titleBaseFigure figureTitleFont(Font font)
font
- fontBaseFigure figureTitleFont(String family, String style, int size)
family
- font family; if null, set to Arialstyle
- font style; if null, set to Font.FontStyle
PLAINsize
- the point size of the FontBaseFigure figureTitleColor(com.illumon.iris.gui.color.Paint color)
color
- colorBaseFigure figureTitleColor(String color)
color
- colorChart newChart()
Chart
to this figure.
The Chart
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.Chart
RuntimeException
- if no space for the new Chart
exists or can not be madeChart newChart(int index)
Chart
to this figure.
The Chart
is placed at the grid space indicated by the index
.
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]index
- index of this Figure's gridChart
RuntimeException
- if index
is outside this Figure's gridChart newChart(int rowNum, int colNum)
Chart
to this figure.
The Chart
is placed at the grid space [rowNum
, colNum
.
Row and column numbers start at 0 in the upper left hand corner of the grid and increase
going top to bottom and left to right respectively. E.g. for a 2x2 Figure, the coordinates would be
[(0,0), (0,1)]
[(1,0), (1,1)]rowNum
- row index of this Figure's gridcolNum
- column index of this Figure's gridChart
RuntimeException
- if the coordinates are outside the Figure's gridBaseFigure removeChart(int index)
index
from this 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]index
- indexBaseFigure removeChart(int rowNum, int colNum)
rowNum
, colNum
from this Figure's grid.
Row and column numbers start at 0 in the upper left hand corner of the grid and increase
going top to bottom and left to right respectively. E.g. for a 2x2 Figure, the coordinates would be
[(0,0), (0,1)]
[(1,0), (1,1)]rowNum
- row index of this Figure's gridcolNum
- column index of this Figure's gridChart
RuntimeException
- if the coordinates are outside the Figure's gridChart chart(int index)
index
from this 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]index
- indexChart
RuntimeException
- if the index is outside the Figure's gridChart chart(int rowNum, int colNum)
rowNum
, colNum
from this Figure's grid.
Row and column numbers start at 0 in the upper left hand corner of the grid and increase
going top to bottom and left to right respectively. E.g. for a 2x2 Figure, the coordinates would be
[(0,0), (0,1)]
[(1,0), (1,1)]rowNum
- row index of this Figure's gridcolNum
- column index of this Figure's gridChart
RuntimeException
- if the coordinates are outside the Figure's gridBaseFigure save(String saveLocation)
saveLocation
.
This image's size is 2480x2160.saveLocation
- save location. Must not be nullcom.fishlib.base.verify.RequirementFailure
- saveLocation is nullBaseFigure save(String saveLocation, int width, int height)
saveLocation
.
This image's size is width
x height
.saveLocation
- save location. Must not be nullwidth
- width of the resultant imageheight
- height of the resultant imagecom.fishlib.base.verify.RequirementFailure
- saveLocation is null