Package io.deephaven.plot
Class ChartImpl
java.lang.Object
io.deephaven.plot.ChartImpl
- All Implemented Interfaces:
Chart
,PlotExceptionCause
,Serializable
Represents a graph. Contains
Axes
objects.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Possible plot orientations. -
Method Summary
Modifier and TypeMethodDescriptionaxes
(int id) Gets an axes.Gets an axes.chartRemoveSeries
(String... removeSeriesNames) Removes the series with the specifiednames
from this Chart.chartTitle
(String title) Sets the title of this Chart.chartTitle
(String titleFormat, Table t, String... titleColumns) Sets the title of this Chart.chartTitle
(String titleFormat, SelectableDataSet sds, String... titleColumns) Sets the title of this Chart.chartTitleColor
(Paint color) Sets the color of this Chart's title.chartTitleColor
(String color) Sets the color of this Chart's title.chartTitleFont
(Font font) Sets the font of this Chart's title.chartTitleFont
(String family, String style, int size) Sets the font of this Chart's title.int
colSpan()
Gets the width of this Chart inside theBaseFigure
colSpan
(int colSpan) Sets the size of this Chart within the grid of the figure.int
column()
int
figure()
Gets theBaseFigure
this Chart is in.getAxes()
Gets theAxesImpl
s in this Chart.getAxis()
Gets theAxisImpl
s in this Chart.Gets the ChartTitle instanceGets theChartType
of this Chart.Gets thePaint
of this Chart's legend.Gets theFont
of this Chart's legend.Gets theChartImpl.PlotOrientation
of this Chart.getTitle()
Gets the title of this Chart.Gets thePaint
of this Chart's title.Gets theFont
of this Chart's title.gridLinesVisible
(boolean gridVisible) Sets whether the Chart has grid lines.Whether the grid lines in the x direction will be drawn.Whether the grid lines in the y direction will be drawn.boolean
Whether this Chart's legend will be drawn.legendColor
(Paint color) Sets the color of the text inside the Chart's legend.legendColor
(String color) Sets the color of the text inside the Chart's legend.legendFont
(Font font) Sets the font of this Chart's legend.legendFont
(String family, String style, int size) Sets the font of this Chart's legend.legendVisible
(boolean visible) Sets whether the Chart's legend is shown or hidden.maxRowsInTitle
(int maxTitleRows) Sets the maximum row values that will be shown in title.newAxes()
Creates newAxes
on this Chart.newAxes
(int dim) Creates newAxes
on this Chart.Creates newAxes
on this Chart.Creates newAxes
on this Chart.plotOrientation
(ChartImpl.PlotOrientation orientation) plotOrientation
(String orientation) Sets the orientation of plots in this Chart.int
row()
int
rowSpan()
Gets the height of this Chart inside theBaseFigure
rowSpan
(int rowSpan) Sets the size of this Chart within the grid of the figure.span
(int rowSpan, int colSpan) Sets the size of this Chart within the grid of the figure.xGridLinesVisible
(boolean xGridVisible) Sets whether the Chart has grid lines in the x direction.yGridLinesVisible
(boolean yGridVisible) Sets whether the Chart has grid lines in the y directionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.plot.Chart
chartTitle, chartTitle, chartTitle, chartTitle
-
Method Details
-
figure
Gets theBaseFigure
this Chart is in.- Returns:
- the
BaseFigure
containing this Chart
-
colSpan
public int colSpan()Gets the width of this Chart inside theBaseFigure
- Returns:
- width of this Chart inside the
BaseFigure
-
rowSpan
public int rowSpan()Gets the height of this Chart inside theBaseFigure
- Returns:
- height of this Chart inside the
BaseFigure
-
column
public int column() -
row
public int row() -
dimension
public int dimension() -
getAxis
Gets theAxisImpl
s in this Chart.- Returns:
AxisImpl
in this Chart
-
getAxes
Gets theAxesImpl
s in this Chart.- Returns:
AxesImpl
s in this Chart
-
getChartType
Gets theChartType
of this Chart.- Returns:
ChartType
of this Chart
-
getTitle
Gets the title of this Chart.- Returns:
- this Chart's title
-
getTitleFont
Gets theFont
of this Chart's title.- Returns:
- this Chart's title's
Font
-
getTitleColor
Gets thePaint
of this Chart's title.- Returns:
- this Chart's title's
Paint
-
getLegendFont
Gets theFont
of this Chart's legend.- Returns:
- this Chart's legend's
Font
-
getLegendColor
Gets thePaint
of this Chart's legend.- Returns:
- this Chart's legend's
Paint
-
isDisplayXGridLines
Whether the grid lines in the x direction will be drawn.- Returns:
- true if this Chart's x grid lines will be drawn, else false
-
isDisplayYGridLines
Whether the grid lines in the y direction will be drawn.- Returns:
- true if this Chart's y grid lines will be drawn, else false
-
isShowLegend
public boolean isShowLegend()Whether this Chart's legend will be drawn.- Returns:
- true if this Chart's legend will be drawn, false otherwise
-
getPlotOrientation
Gets theChartImpl.PlotOrientation
of this Chart.- Returns:
ChartImpl.PlotOrientation
of this Chart.
-
getPlotInfo
- Specified by:
getPlotInfo
in interfacePlotExceptionCause
-
getChartTitle
Gets the ChartTitle instance- Returns:
- ChartTitle instance
-
chartRemoveSeries
Description copied from interface:Chart
Removes the series with the specifiednames
from this Chart.- Specified by:
chartRemoveSeries
in interfaceChart
- Parameters:
removeSeriesNames
- series names- Returns:
- this Chart
-
chartTitle
Description copied from interface:Chart
Sets the title of this Chart.- Specified by:
chartTitle
in interfaceChart
- Parameters:
title
- title- Returns:
- this
Chart
-
chartTitle
Description copied from interface:Chart
Sets the title of this Chart.- Specified by:
chartTitle
in interfaceChart
- 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
Description copied from interface:Chart
Sets the title of this Chart.- Specified by:
chartTitle
in interfaceChart
- 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
Description copied from interface:Chart
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.
ifmaxRowsCount
is < 0, all values will be shown.
ifmaxRowsCount
is 0, then just first value will be shown without ellipsis.
The default is 0.- Specified by:
maxRowsInTitle
in interfaceChart
- Parameters:
maxTitleRows
- maximum number of row values to show in chart title- Returns:
- this Chart
-
chartTitleFont
Description copied from interface:Chart
Sets the font of this Chart's title.- Specified by:
chartTitleFont
in interfaceChart
- Parameters:
font
- font- Returns:
- this Chart
-
chartTitleFont
Description copied from interface:Chart
Sets the font of this Chart's title.- Specified by:
chartTitleFont
in interfaceChart
- 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
Description copied from interface:Chart
Sets the color of this Chart's title.- Specified by:
chartTitleColor
in interfaceChart
- Parameters:
color
- color- Returns:
- this Chart
-
chartTitleColor
Description copied from interface:Chart
Sets the color of this Chart's title.- Specified by:
chartTitleColor
in interfaceChart
- Parameters:
color
- color- Returns:
- this Chart
-
gridLinesVisible
Description copied from interface:Chart
Sets whether the Chart has grid lines.- Specified by:
gridLinesVisible
in interfaceChart
- Parameters:
gridVisible
- whether the Chart's grid lines are drawn- Returns:
- this Chart
-
xGridLinesVisible
Description copied from interface:Chart
Sets whether the Chart has grid lines in the x direction.- Specified by:
xGridLinesVisible
in interfaceChart
- Parameters:
xGridVisible
- whether the Chart's x grid lines are drawn- Returns:
- this Chart
-
yGridLinesVisible
Description copied from interface:Chart
Sets whether the Chart has grid lines in the y direction- Specified by:
yGridLinesVisible
in interfaceChart
- Parameters:
yGridVisible
- whether the Chart's y grid lines are drawn- Returns:
- this Chart
-
legendVisible
Description copied from interface:Chart
Sets whether the Chart's legend is shown or hidden.- Specified by:
legendVisible
in interfaceChart
- Parameters:
visible
- whether the Chart's legend is shown or hidden- Returns:
- this Chart
-
legendFont
Description copied from interface:Chart
Sets the font of this Chart's legend.- Specified by:
legendFont
in interfaceChart
- Parameters:
font
- font- Returns:
- this Chart
-
legendFont
Description copied from interface:Chart
Sets the font of this Chart's legend.- Specified by:
legendFont
in interfaceChart
- 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
Description copied from interface:Chart
Sets the color of the text inside the Chart's legend.- Specified by:
legendColor
in interfaceChart
- Parameters:
color
- color- Returns:
- this Chart
-
legendColor
Description copied from interface:Chart
Sets the color of the text inside the Chart's legend.- Specified by:
legendColor
in interfaceChart
- Parameters:
color
- color- Returns:
- this Chart
-
span
Description copied from interface:Chart
Sets the size of this Chart within the grid of the figure. -
colSpan
Description copied from interface:Chart
Sets the size of this Chart within the grid of the figure. -
rowSpan
Description copied from interface:Chart
Sets the size of this Chart within the grid of the figure. -
newAxes
Description copied from interface:Chart
Creates newAxes
on this Chart. -
newAxes
Description copied from interface:Chart
Creates newAxes
on this Chart. -
newAxes
Description copied from interface:Chart
Creates newAxes
on this Chart. -
newAxes
Description copied from interface:Chart
Creates newAxes
on this Chart. -
axes
Description copied from interface:Chart
Gets an axes. -
axes
Description copied from interface:Chart
Gets an axes. -
plotOrientation
-
plotOrientation
Description copied from interface:Chart
Sets the orientation of plots in this Chart.- Specified by:
plotOrientation
in interfaceChart
- Parameters:
orientation
- plot orientation- Returns:
- this Chart
-