Package com.jbstrap.ui.components.charts
Class AxesBaseSeries
java.lang.Object
com.jbstrap.ui.components.charts.Series
com.jbstrap.ui.components.charts.AxesBaseSeries
- Direct Known Subclasses:
AreaSeries
,BarSeries
,BubbleSeries
,DotSeries
,GaugeSeries
,LineSeries
Parent class of series objects applicable for axis-based charts.
- Since:
- 4.0
- Author:
- JBStrap
-
Field Summary
Fields inherited from class com.jbstrap.ui.components.charts.Series
CATEGORY_COLUMN, COLOR_COLUMN, colorColumn, DATA_COLUMN, dataColumn, LABEL_COLUMN, labelColumn, MARKER_SIZE, MARKER_TYPE, param, parentChart
-
Constructor Summary
ConstructorDescriptionAxesBaseSeries
(String title) Creates an axis-based series object.AxesBaseSeries
(String title, String dataColumn) Creates an axis-based series object and sets the name of the column. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the gridlines on the X axis are displayed.boolean
Checks if the gridlines on the Y axis are displayed.setShowCategoryValueTangent
(boolean showCategoryValueTangent) Turns the tangent line on the X axis on / off.setShowSeriesValueTangent
(boolean showSeriesValueTangent) Turns on/off the Y axis tangents.Methods inherited from class com.jbstrap.ui.components.charts.Series
addData, addData, addData, addData, clear, getColorColumn, getData, getDataColumn, getLabelColumn, getMarker, getMarkerSize, getMarkerType, getParams, getTitle, getValues, isEmpty, refreshMarker, removeDataByCategory, removeDataByIndex, setColorColumn, setDataColumn, setLabelColumn, setMarkerSize, setMarkerType, setParams, setParentChart
-
Field Details
-
VALUE_TANGENT
- See Also:
-
-
Constructor Details
-
AxesBaseSeries
Creates an axis-based series object.- Parameters:
title
- Series title (required)- Throws:
NullPointerException
- Thrown if the specified axis name isnull
-
AxesBaseSeries
Creates an axis-based series object and sets the name of the column.- Parameters:
title
- Series title (required)dataColumn
- The name of the column that contains the data series in the DataDescriptor- Throws:
NullPointerException
- Thrown if the specified series name isnull
-
-
Method Details
-
setShowCategoryValueTangent
Turns the tangent line on the X axis on / off. Tangent line appear when the user hovers over a data point portion of the chart. The X-axis tangent line is enabled by default.- Parameters:
showCategoryValueTangent
- Iftrue
is specified, the tangent is visible, otherwise not- Returns:
- Series object
-
isShowCategoryValueTangent
public boolean isShowCategoryValueTangent()Checks if the gridlines on the X axis are displayed.- Returns:
- If
true
, the gridlines on the X axis are displayed if the user hovers with the mouse pointer over a data point, Otherwise not specified.
-
setShowSeriesValueTangent
Turns on/off the Y axis tangents. Gridlines are displayed if the user hovers over a data point part of the chart. Y axis tangents are enabled by default.- Parameters:
showSeriesValueTangent
- Iftrue
is specified, the tangent line is visible, otherwise not- Returns:
- Series object
-
isShowSeriesValueTangent
public boolean isShowSeriesValueTangent()Checks if the gridlines on the Y axis are displayed.- Returns:
- If
true
, the gridlines on the Y axis are displayed if the user hovers with the mouse pointer over a data point, Otherwise not specified.
-