Class GaugeChartSection

java.lang.Object
com.jbstrap.core.Parameters
com.jbstrap.ui.components.charts.GaugeChartSection
All Implemented Interfaces:
Serializable

public class GaugeChartSection extends Parameters
POJO object representing a section of the gauge chart.
Since:
4.0
Author:
JBStrap
See Also:
  • Field Details

  • Constructor Details

    • GaugeChartSection

      protected GaugeChartSection(String name, double start)
      Parameters:
      name - Section name
      start - Starting value of the section
  • Method Details

    • getName

      public String getName()
      Gets the name of the section.
      Returns:
      Section name
    • setName

      protected GaugeChartSection setName(String name)
      Parameters:
      name - New section name
      Returns:
      Section instance
    • getStartValue

      public Double getStartValue()
      Gets the starting value of the section.
      Returns:
      Starting value of the section
    • setStart

      protected GaugeChartSection setStart(double start)
      Parameters:
      start - Starting value of the section
      Returns:
      Section instance
    • getColor

      public String getColor()
      Gets the color of the section.
      Returns:
      Section color
    • setColor

      protected GaugeChartSection setColor(String color)
      Parameters:
      color - Section color as defined by the CSS3 standard
      Returns:
      Section instance