Package com.storedobject.svg.chart
Class Values.Value
java.lang.Object
com.storedobject.svg.chart.Values.Value
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Values.StyledValue
- Enclosing class:
Values
Represents a single data point in the chart. This could be subclassed to include additional attributes.
- Author:
- Syam
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleangetColor()Gets the color associated with this value.final longgetId()Gets the internal numeric identifier of this value.getLabel()Gets the label associated with this value.doublegetValue()Gets the numeric value.final inthashCode()final StringGets the SVG element identifier for this value.toString()
-
Constructor Details
-
Value
-
Value
-
-
Method Details
-
getLabel
-
getValue
public double getValue()Gets the numeric value.- Returns:
- the value
-
getColor
Gets the color associated with this value.- Returns:
- the color, or
nullif no color is set
-
getId
public final long getId()Gets the internal numeric identifier of this value.- Returns:
- the identifier
-
id
-
equals
-
hashCode
-
toString
-