Record Class StatusStyleAppearance
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.StatusStyleAppearance
- Record Components:
foreground- foreground color to usebackground- background color to useborder- border value used by the operation
public record StatusStyleAppearance(Color foreground, Color background, Color border)
extends Record
Computed colors used to draw status-dependent UI elements.
-
Constructor Summary
ConstructorsConstructorDescriptionStatusStyleAppearance(Color foreground, Color background, Color border) Creates an instance of aStatusStyleAppearancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundrecord component.border()Returns the value of theborderrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforegroundrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatusStyleAppearance
Creates an instance of aStatusStyleAppearancerecord class.- Parameters:
foreground- the value for theforegroundrecord componentbackground- the value for thebackgroundrecord componentborder- the value for theborderrecord 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). -
foreground
Returns the value of theforegroundrecord component.- Returns:
- the value of the
foregroundrecord component
-
background
Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-
border
Returns the value of theborderrecord component.- Returns:
- the value of the
borderrecord component
-