Package com.illumon.iris.db.plot
Class ChartImpl
java.lang.Object
com.illumon.iris.db.plot.ChartImpl
- All Implemented Interfaces:
Chart,PlotExceptionCause,Serializable
Represents a graph. Contains
Axes objects.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible plot orientations. -
Method Summary
Modifier and TypeMethodDescriptionaxes(int id) Gets an axes.Gets an axes.chartRemoveSeries(String... names) Removes the series with the specifiednamesfrom this Chart.chartTitle(String title) Sets the title of this Chart.chartTitle(String titleFormat, SelectableDataSet sds, String... titleColumns) Sets the title of this Chart.chartTitle(String titleFormat, Table t, 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.intcolSpan()Gets the width of this Chart inside theBaseFigurecolSpan(int n) Sets the size of this Chart within the grid of the figure.intcolumn()intfigure()Gets theBaseFigurethis Chart is in.voidgetAxes()Gets theAxesImpls in this Chart.getAxis()Gets theAxisImpls in this Chart.Gets the ChartTitle instanceGets theChartTypeof this Chart.Gets thePaintof this Chart's legend.Gets theFontof this Chart's legend.Gets theChartImpl.PlotOrientationof this Chart.getTitle()Gets the title of this Chart.Gets thePaintof this Chart's title.Gets theFontof this Chart's title.gridLinesVisible(boolean visible) 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.booleanWhether 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 maxRowsCount) Sets the maximum row values that will be shown in title.newAxes()Creates newAxeson this Chart.newAxes(int dim) Creates newAxeson this Chart.Creates newAxeson this Chart.Creates newAxeson this Chart.voidonClose()Tear down once figure is closed.voidSet up after serialization.plotOrientation(ChartImpl.PlotOrientation orientation) plotOrientation(String orientation) Sets the orientation of plots in this Chart.introw()introwSpan()Gets the height of this Chart inside theBaseFigurerowSpan(int n) Sets the size of this Chart within the grid of the figure.voidspan(int rowSpan, int colSpan) Sets the size of this Chart within the grid of the figure.voidvoidstopDraw()voidtheme()Gets theThemeof theBaseFigurecontaining this Chart.xGridLinesVisible(boolean visible) Sets whether the Chart has grid lines in the x direction.yGridLinesVisible(boolean visible) 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, waitMethods inherited from interface com.illumon.iris.db.plot.Chart
chartTitle, chartTitle, chartTitle, chartTitle
-
Method Details
-
figure
Gets theBaseFigurethis Chart is in.- Returns:
- the
BaseFigurecontaining this Chart
-
theme
Gets theThemeof theBaseFigurecontaining this Chart.- Returns:
BaseFigurecontaining this Chart'sTheme
-
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 theAxisImpls in this Chart.- Returns:
AxisImplin this Chart
-
getAxes
Gets theAxesImpls in this Chart.- Returns:
AxesImpls in this Chart
-
getChartType
Gets theChartTypeof this Chart.- Returns:
ChartTypeof this Chart
-
getTitle
Gets the title of this Chart.- Returns:
- this Chart's title
-
getTitleFont
Gets theFontof this Chart's title.- Returns:
- this Chart's title's
Font
-
getTitleColor
Gets thePaintof this Chart's title.- Returns:
- this Chart's title's
Paint
-
getLegendFont
Gets theFontof this Chart's legend.- Returns:
- this Chart's legend's
Font
-
getLegendColor
Gets thePaintof 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.PlotOrientationof this Chart.- Returns:
ChartImpl.PlotOrientationof this Chart.
-
onInflate
public void onInflate()Set up after serialization. -
onClose
public void onClose()Tear down once figure is closed. -
getPlotInfo
- Specified by:
getPlotInfoin interfacePlotExceptionCause
-
startDraw
public void startDraw() -
stopDraw
public void stopDraw() -
freezeSnapshots
public void freezeSnapshots() -
thawSnapshots
public void thawSnapshots() -
setupInitializationGate
public void setupInitializationGate() -
initializationGate
-
getChartTitle
Gets the ChartTitle instance- Returns:
- ChartTitle instance
-
chartRemoveSeries
Description copied from interface:ChartRemoves the series with the specifiednamesfrom this Chart.- Specified by:
chartRemoveSeriesin interfaceChart- Parameters:
names- series names- Returns:
- this Chart
-
chartTitle
Description copied from interface:ChartSets the title of this Chart.- Specified by:
chartTitlein interfaceChart- Parameters:
title- title- Returns:
- this
Chart
-
chartTitle
Description copied from interface:ChartSets the title of this Chart.- Specified by:
chartTitlein interfaceChart- Parameters:
titleFormat- aMessageFormatformat string for the chart titlet- tabletitleColumns- columns to include in the chart title- Returns:
- this
Chartwith the title set to display values from the table
-
chartTitle
Description copied from interface:ChartSets the title of this Chart.- Specified by:
chartTitlein interfaceChart- Parameters:
titleFormat- aMessageFormatformat string for the chart titlesds- selectable data set (e.g. OneClick table)titleColumns- columns to include in the chart title- Returns:
- this
Chartwith the title set to display values from the table
-
maxRowsInTitle
Description copied from interface:ChartSets 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 justmaxRowsCountvalues will be shown along with ellipsis.if
maxRowsCountis < 0, all values will be shown.if
maxRowsCountis 0, then just first value will be shown without ellipsis.The default is 0.
- Specified by:
maxRowsInTitlein interfaceChart- Parameters:
maxRowsCount- maximum number of row values to show in chart title- Returns:
- this Chart
-
chartTitleFont
Description copied from interface:ChartSets the font of this Chart's title.- Specified by:
chartTitleFontin interfaceChart- Parameters:
font- font- Returns:
- this Chart
-
chartTitleFont
Description copied from interface:ChartSets the font of this Chart's title.- Specified by:
chartTitleFontin interfaceChart- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Chart
-
chartTitleColor
Description copied from interface:ChartSets the color of this Chart's title.- Specified by:
chartTitleColorin interfaceChart- Parameters:
color- color- Returns:
- this Chart
-
chartTitleColor
Description copied from interface:ChartSets the color of this Chart's title.- Specified by:
chartTitleColorin interfaceChart- Parameters:
color- color- Returns:
- this Chart
-
gridLinesVisible
Description copied from interface:ChartSets whether the Chart has grid lines.- Specified by:
gridLinesVisiblein interfaceChart- Parameters:
visible- whether the Chart's grid lines are drawn- Returns:
- this Chart
-
xGridLinesVisible
Description copied from interface:ChartSets whether the Chart has grid lines in the x direction.- Specified by:
xGridLinesVisiblein interfaceChart- Parameters:
visible- whether the Chart's x grid lines are drawn- Returns:
- this Chart
-
yGridLinesVisible
Description copied from interface:ChartSets whether the Chart has grid lines in the y direction- Specified by:
yGridLinesVisiblein interfaceChart- Parameters:
visible- whether the Chart's y grid lines are drawn- Returns:
- this Chart
-
legendVisible
Description copied from interface:ChartSets whether the Chart's legend is shown or hidden.- Specified by:
legendVisiblein interfaceChart- Parameters:
visible- whether the Chart's legend is shown or hidden- Returns:
- this Chart
-
legendFont
Description copied from interface:ChartSets the font of this Chart's legend.- Specified by:
legendFontin interfaceChart- Parameters:
font- font- Returns:
- this Chart
-
legendFont
Description copied from interface:ChartSets the font of this Chart's legend.- Specified by:
legendFontin interfaceChart- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Chart
-
legendColor
Description copied from interface:ChartSets the color of the text inside the Chart's legend.- Specified by:
legendColorin interfaceChart- Parameters:
color- color- Returns:
- this Chart
-
legendColor
Description copied from interface:ChartSets the color of the text inside the Chart's legend.- Specified by:
legendColorin interfaceChart- Parameters:
color- color- Returns:
- this Chart
-
span
Description copied from interface:ChartSets the size of this Chart within the grid of the figure. -
colSpan
Description copied from interface:ChartSets the size of this Chart within the grid of the figure. -
rowSpan
Description copied from interface:ChartSets the size of this Chart within the grid of the figure. -
newAxes
Description copied from interface:ChartCreates newAxeson this Chart. -
newAxes
Description copied from interface:ChartCreates newAxeson this Chart. -
newAxes
Description copied from interface:ChartCreates newAxeson this Chart. -
newAxes
Description copied from interface:ChartCreates newAxeson this Chart. -
axes
Description copied from interface:ChartGets an axes. -
axes
Description copied from interface:ChartGets an axes. -
plotOrientation
-
plotOrientation
Description copied from interface:ChartSets the orientation of plots in this Chart.- Specified by:
plotOrientationin interfaceChart- Parameters:
orientation- plot orientation- Returns:
- this Chart
-