Package com.illumon.iris.db.plot
Interface Chart
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
Figure
- All Known Implementing Classes:
ChartImpl
,FigureImpl
,FigureWidget
,ScatterPlotMatrix
public interface Chart extends Serializable
Represents a graph. Contains
Axes
objects.-
Method Summary
Modifier and Type Method Description Axes
axes(int id)
Gets an axes.Axes
axes(String name)
Gets an axes.Chart
chartRemoveSeries(String... names)
Removes the series with the specifiednames
from this Chart.default Chart
chartTitle(boolean showColumnNamesInTitle, SelectableDataSet sds, String... titleColumns)
Sets the title of this Chart.default Chart
chartTitle(boolean showColumnNamesInTitle, Table t, String... titleColumns)
Sets the title of this Chart.default Chart
chartTitle(SelectableDataSet sds, String... titleColumns)
Sets the title of this Chart.default Chart
chartTitle(Table t, String... titleColumns)
Sets the title of this Chart.Chart
chartTitle(String title)
Sets the title of this Chart.Chart
chartTitle(String titleFormat, SelectableDataSet sds, String... titleColumns)
Sets the title of this Chart.Chart
chartTitle(String titleFormat, Table t, String... titleColumns)
Sets the title of this Chart.Chart
chartTitleColor(Paint color)
Sets the color of this Chart's title.Chart
chartTitleColor(String color)
Sets the color of this Chart's title.Chart
chartTitleFont(Font font)
Sets the font of this Chart's title.Chart
chartTitleFont(String family, String style, int size)
Sets the font of this Chart's title.Chart
colSpan(int n)
Sets the size of this Chart within the grid of the figure.Chart
gridLinesVisible(boolean visible)
Sets whether the Chart has grid lines.Chart
legendColor(Paint color)
Sets the color of the text inside the Chart's legend.Chart
legendColor(String color)
Sets the color of the text inside the Chart's legend.Chart
legendFont(Font font)
Sets the font of this Chart's legend.Chart
legendFont(String family, String style, int size)
Sets the font of this Chart's legend.Chart
legendVisible(boolean visible)
Sets whether the Chart's legend is shown or hidden.Chart
maxRowsInTitle(int maxRowsCount)
Sets the maximum row values that will be shown in title.Axes
newAxes()
Creates newAxes
on this Chart.Axes
newAxes(int dim)
Creates newAxes
on this Chart.Axes
newAxes(String name)
Creates newAxes
on this Chart.Axes
newAxes(String name, int dim)
Creates newAxes
on this Chart.Chart
plotOrientation(String orientation)
Sets the orientation of plots in this Chart.Chart
rowSpan(int n)
Sets the size of this Chart within the grid of the figure.Chart
span(int rowSpan, int colSpan)
Sets the size of this Chart within the grid of the figure.Chart
xGridLinesVisible(boolean visible)
Sets whether the Chart has grid lines in the x direction.Chart
yGridLinesVisible(boolean visible)
Sets whether the Chart has grid lines in the y direction
-
Method Details
-
chartRemoveSeries
Removes the series with the specifiednames
from this Chart.- Parameters:
names
- series names- Returns:
- this Chart
-
chartTitle
Sets the title of this Chart.- Parameters:
title
- title- Returns:
- this
Chart
-
chartTitle
Sets the title of this Chart.- Parameters:
t
- tabletitleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display comma-separated values from the table
-
chartTitle
Sets the title of this Chart.- Parameters:
showColumnNamesInTitle
- Whether to show column names in title. If this is true, the title format will include the column name before the comma separated values; otherwise only the comma separated values will be included.t
- tabletitleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display comma-separated values from the table
-
chartTitle
Sets the title of this Chart.- Parameters:
titleFormat
- aMessageFormat
format string for the chart titlet
- tabletitleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display values from the table
-
chartTitle
Sets the title of this Chart.- Parameters:
sds
- selectable data set (e.g. OneClick table)titleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display comma-separated values from the table
-
chartTitle
default Chart chartTitle(boolean showColumnNamesInTitle, SelectableDataSet sds, String... titleColumns)Sets the title of this Chart.- Parameters:
showColumnNamesInTitle
- Whether to show column names in title. If this is true, the title format will include the column name before the comma separated values; otherwise only the comma separated values will be included.sds
- selectable data set (e.g. OneClick table)titleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display comma-separated values from the table
-
chartTitle
Sets the title of this Chart.- Parameters:
titleFormat
- aMessageFormat
format string for the chart titlesds
- selectable data set (e.g. OneClick table)titleColumns
- columns to include in the chart title- Returns:
- this
Chart
with the title set to display values from the table
-
maxRowsInTitle
Sets the maximum row values that will be shown in title.If total rows <
maxRowsCount
, then all the values will be shown separated by comma, otherwise justmaxRowsCount
values will be shown along with ellipsis.if
maxRowsCount
is < 0, all values will be shown.if
maxRowsCount
is 0, then just first value will be shown without ellipsis.The default is 0.
- Parameters:
maxRowsCount
- maximum number of row values to show in chart title- Returns:
- this Chart
-
chartTitleFont
Sets the font of this Chart's title.- Parameters:
font
- font- Returns:
- this Chart
-
chartTitleFont
Sets the font of this Chart'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 Chart
-
chartTitleColor
Sets the color of this Chart's title.- Parameters:
color
- color- Returns:
- this Chart
-
chartTitleColor
Sets the color of this Chart's title.- Parameters:
color
- color- Returns:
- this Chart
-
gridLinesVisible
Sets whether the Chart has grid lines.- Parameters:
visible
- whether the Chart's grid lines are drawn- Returns:
- this Chart
-
xGridLinesVisible
Sets whether the Chart has grid lines in the x direction.- Parameters:
visible
- whether the Chart's x grid lines are drawn- Returns:
- this Chart
-
yGridLinesVisible
Sets whether the Chart has grid lines in the y direction- Parameters:
visible
- whether the Chart's y grid lines are drawn- Returns:
- this Chart
-
legendVisible
Sets whether the Chart's legend is shown or hidden.- Parameters:
visible
- whether the Chart's legend is shown or hidden- Returns:
- this Chart
-
legendFont
Sets the font of this Chart's legend.- Parameters:
font
- font- Returns:
- this Chart
-
legendFont
Sets the font of this Chart's legend.- 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 Chart
-
legendColor
Sets the color of the text inside the Chart's legend.- Parameters:
color
- color- Returns:
- this Chart
-
legendColor
Sets the color of the text inside the Chart's legend.- Parameters:
color
- color- Returns:
- this Chart
-
span
Sets the size of this Chart within the grid of the figure.- Parameters:
rowSpan
- how many rows tallcolSpan
- how many columns wide- Returns:
- this Chart
-
colSpan
Sets the size of this Chart within the grid of the figure.- Parameters:
n
- how many columns wide- Returns:
- this Chart
-
rowSpan
Sets the size of this Chart within the grid of the figure.- Parameters:
n
- how many rows tall- Returns:
- this Chart
-
newAxes
Axes newAxes()Creates newAxes
on this Chart.- Returns:
- newly created
Axes
with dimension 2 on this Chart
-
newAxes
Creates newAxes
on this Chart.- Parameters:
name
- name for the axes- Returns:
- newly created
Axes
with dimension 2 on this Chart
-
newAxes
Creates newAxes
on this Chart. -
newAxes
Creates newAxes
on this Chart. -
axes
Gets an axes.- Parameters:
id
- axes id.- Returns:
- selected axes.
-
axes
Gets an axes.- Parameters:
name
- axes name.- Returns:
- selected axes.
-
plotOrientation
Sets the orientation of plots in this Chart.- Parameters:
orientation
- plot orientation- Returns:
- this Chart
-