Package io.keikai.axyra.sheets.content
Record Class SparklineGroup
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.SparklineGroup
public record SparklineGroup(String type, boolean showMarkers, boolean showHigh, boolean showLow, boolean showFirst, boolean showLast, boolean showNegative, String seriesColor, String negativeColor, String axisColor, String markersColor, String firstColor, String lastColor, String highColor, String lowColor, String minAxisType, String maxAxisType, Double manualMin, Double manualMax, String dateAxisRange, List<Sparkline> sparklines)
extends Record
A sparkline group: a set of same-styled mini inline charts (ECMA-376 Part 4
§18.3.1.32,
x14:sparklineGroup). type is
"line" / "column" / "stacked"; the boolean flags are
the basic point-highlight style (markers and high/low/first/last/negative
emphasis); seriesColor is the series ARGB (or "theme:N"), or
null. Each Sparkline carries its data range and draw location.
"stacked" is Excel's Win/Loss sparkline. Read the groups with
Sheet.sparklines(); the record is a snapshot.-
Constructor Summary
ConstructorsConstructorDescriptionSparklineGroup(String type, boolean showMarkers, boolean showHigh, boolean showLow, boolean showFirst, boolean showLast, boolean showNegative, String seriesColor, String negativeColor, String axisColor, String markersColor, String firstColor, String lastColor, String highColor, String lowColor, String minAxisType, String maxAxisType, Double manualMin, Double manualMax, String dateAxisRange, List<Sparkline> sparklines) Creates an instance of aSparklineGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaxisColorrecord component.Returns the value of thedateAxisRangerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstColorrecord component.static SparklineGroupParse the engine's sparkline-group JSON.final inthashCode()Returns a hash code value for this object.Returns the value of thehighColorrecord component.Returns the value of thelastColorrecord component.lowColor()Returns the value of thelowColorrecord component.Returns the value of themanualMaxrecord component.Returns the value of themanualMinrecord component.Returns the value of themarkersColorrecord component.Returns the value of themaxAxisTyperecord component.Returns the value of theminAxisTyperecord component.Returns the value of thenegativeColorrecord component.Returns the value of theseriesColorrecord component.booleanReturns the value of theshowFirstrecord component.booleanshowHigh()Returns the value of theshowHighrecord component.booleanshowLast()Returns the value of theshowLastrecord component.booleanshowLow()Returns the value of theshowLowrecord component.booleanReturns the value of theshowMarkersrecord component.booleanReturns the value of theshowNegativerecord component.Returns the value of thesparklinesrecord component.style()The group's style, forSheet.setSparklineStyle.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SparklineGroup
public SparklineGroup(String type, boolean showMarkers, boolean showHigh, boolean showLow, boolean showFirst, boolean showLast, boolean showNegative, String seriesColor, String negativeColor, String axisColor, String markersColor, String firstColor, String lastColor, String highColor, String lowColor, String minAxisType, String maxAxisType, Double manualMin, Double manualMax, String dateAxisRange, List<Sparkline> sparklines) Creates an instance of aSparklineGrouprecord class.- Parameters:
type- the value for thetyperecord componentshowMarkers- the value for theshowMarkersrecord componentshowHigh- the value for theshowHighrecord componentshowLow- the value for theshowLowrecord componentshowFirst- the value for theshowFirstrecord componentshowLast- the value for theshowLastrecord componentshowNegative- the value for theshowNegativerecord componentseriesColor- the value for theseriesColorrecord componentnegativeColor- the value for thenegativeColorrecord componentaxisColor- the value for theaxisColorrecord componentmarkersColor- the value for themarkersColorrecord componentfirstColor- the value for thefirstColorrecord componentlastColor- the value for thelastColorrecord componenthighColor- the value for thehighColorrecord componentlowColor- the value for thelowColorrecord componentminAxisType- the value for theminAxisTyperecord componentmaxAxisType- the value for themaxAxisTyperecord componentmanualMin- the value for themanualMinrecord componentmanualMax- the value for themanualMaxrecord componentdateAxisRange- the value for thedateAxisRangerecord componentsparklines- the value for thesparklinesrecord component
-
-
Method Details
-
style
The group's style, forSheet.setSparklineStyle. That call replaces every field, so anullcolor in the style clears that color. A theme color is read back without its tint, so re-applying this style loses the tint. -
fromJson
Parse the engine's sparkline-group JSON. Not part of the public API. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
showMarkers
public boolean showMarkers()Returns the value of theshowMarkersrecord component.- Returns:
- the value of the
showMarkersrecord component
-
showHigh
public boolean showHigh()Returns the value of theshowHighrecord component.- Returns:
- the value of the
showHighrecord component
-
showLow
public boolean showLow()Returns the value of theshowLowrecord component.- Returns:
- the value of the
showLowrecord component
-
showFirst
public boolean showFirst()Returns the value of theshowFirstrecord component.- Returns:
- the value of the
showFirstrecord component
-
showLast
public boolean showLast()Returns the value of theshowLastrecord component.- Returns:
- the value of the
showLastrecord component
-
showNegative
public boolean showNegative()Returns the value of theshowNegativerecord component.- Returns:
- the value of the
showNegativerecord component
-
seriesColor
Returns the value of theseriesColorrecord component.- Returns:
- the value of the
seriesColorrecord component
-
negativeColor
Returns the value of thenegativeColorrecord component.- Returns:
- the value of the
negativeColorrecord component
-
axisColor
Returns the value of theaxisColorrecord component.- Returns:
- the value of the
axisColorrecord component
-
markersColor
Returns the value of themarkersColorrecord component.- Returns:
- the value of the
markersColorrecord component
-
firstColor
Returns the value of thefirstColorrecord component.- Returns:
- the value of the
firstColorrecord component
-
lastColor
Returns the value of thelastColorrecord component.- Returns:
- the value of the
lastColorrecord component
-
highColor
Returns the value of thehighColorrecord component.- Returns:
- the value of the
highColorrecord component
-
lowColor
Returns the value of thelowColorrecord component.- Returns:
- the value of the
lowColorrecord component
-
minAxisType
Returns the value of theminAxisTyperecord component.- Returns:
- the value of the
minAxisTyperecord component
-
maxAxisType
Returns the value of themaxAxisTyperecord component.- Returns:
- the value of the
maxAxisTyperecord component
-
manualMin
Returns the value of themanualMinrecord component.- Returns:
- the value of the
manualMinrecord component
-
manualMax
Returns the value of themanualMaxrecord component.- Returns:
- the value of the
manualMaxrecord component
-
dateAxisRange
Returns the value of thedateAxisRangerecord component.- Returns:
- the value of the
dateAxisRangerecord component
-
sparklines
Returns the value of thesparklinesrecord component.- Returns:
- the value of the
sparklinesrecord component
-