Record Class AbstractContourPlot.LabelData<Z extends Number>
java.lang.Object
java.lang.Record
org.opentrafficsim.animation.graphs.AbstractContourPlot.LabelData<Z>
- Type Parameters:
Z- value type- Record Components:
legendStep- increment between color legend entrieslegendFormat- format string for the captions in the color legend, for example%.1fm/sfor30.2m/slabelFormat- format string used to create status label (under the mouse), e.g.desired speed %.1f m/s
- Enclosing class:
- AbstractContourPlot<Z extends Number>
public static record AbstractContourPlot.LabelData<Z extends Number>(Z extends Number legendStep, String legendFormat, String labelFormat)
extends Record
Input container for label input.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelabelFormatrecord component.Returns the value of thelegendFormatrecord component.Returns the value of thelegendSteprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LabelData
Creates an instance of aLabelDatarecord class.- Parameters:
legendStep- the value for thelegendSteprecord componentlegendFormat- the value for thelegendFormatrecord componentlabelFormat- the value for thelabelFormatrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
legendStep
Returns the value of thelegendSteprecord component.- Returns:
- the value of the
legendSteprecord component
-
legendFormat
Returns the value of thelegendFormatrecord component.- Returns:
- the value of the
legendFormatrecord component
-
labelFormat
Returns the value of thelabelFormatrecord component.- Returns:
- the value of the
labelFormatrecord component
-