Package io.keikai.axyra.sheets.content
Record Class ErrorBars
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.ErrorBars
public record ErrorBars(String direction, String barType, String valueType, Double value, boolean endCap)
extends Record
Series error bars (ECMA-376 §21.2.2.55).
direction is
x | y; barType is both | minus | plus;
valueType is fixedVal | percentage | stdDev | stdErr | cust
with value carrying the magnitude / multiplier.
Error bars are honored by the in-memory model and the chart renderer,
and persist to the saved workbook (re-emitted as <c:errBars> per
ECMA-376 §21.2.2.55).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbarType()Returns the value of thebarTyperecord component.Returns the value of thedirectionrecord component.booleanendCap()Returns the value of theendCaprecord component.final booleanIndicates whether some other object is "equal to" this one.static ErrorBarsfixed(double magnitude) Fixed-magnitude Y error bars in both directions.final inthashCode()Returns a hash code value for this object.static ErrorBarspercentage(double percent) Percentage Y error bars in both directions.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Returns the value of thevalueTyperecord component.
-
Constructor Details
-
ErrorBars
Creates an instance of aErrorBarsrecord class.- Parameters:
direction- the value for thedirectionrecord componentbarType- the value for thebarTyperecord componentvalueType- the value for thevalueTyperecord componentvalue- the value for thevaluerecord componentendCap- the value for theendCaprecord component
-
-
Method Details
-
fixed
Fixed-magnitude Y error bars in both directions. -
percentage
Percentage Y error bars in both directions. -
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 '=='. -
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
barType
Returns the value of thebarTyperecord component.- Returns:
- the value of the
barTyperecord component
-
valueType
Returns the value of thevalueTyperecord component.- Returns:
- the value of the
valueTyperecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
endCap
public boolean endCap()Returns the value of theendCaprecord component.- Returns:
- the value of the
endCaprecord component
-