Package com.jbstrap.ui.components.charts
Class GaugeChartSection
java.lang.Object
com.jbstrap.core.Parameters
com.jbstrap.ui.components.charts.GaugeChartSection
- All Implemented Interfaces:
Serializable
POJO object representing a section of the gauge chart.
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Gets the color of the section.getName()
Gets the name of the section.Gets the starting value of the section.protected GaugeChartSection
protected GaugeChartSection
protected GaugeChartSection
setStart
(double start) Methods inherited from class com.jbstrap.core.Parameters
add, clear, copy, deserialize, equals, get, getAsBoolean, getAsDate, getAsDate, getAsDouble, getAsInteger, getAsLong, getAsNumber, getAsString, getNames, isEmpty, merge, remove, serialize, toString
-
Field Details
-
LABEL
- See Also:
-
COLOR
- See Also:
-
START
- See Also:
-
-
Constructor Details
-
GaugeChartSection
- Parameters:
name
- Section namestart
- Starting value of the section
-
-
Method Details
-
getName
Gets the name of the section.- Returns:
- Section name
-
setName
- Parameters:
name
- New section name- Returns:
- Section instance
-
getStartValue
Gets the starting value of the section.- Returns:
- Starting value of the section
-
setStart
- Parameters:
start
- Starting value of the section- Returns:
- Section instance
-
getColor
Gets the color of the section.- Returns:
- Section color
-
setColor
- Parameters:
color
- Section color as defined by the CSS3 standard- Returns:
- Section instance
-