Module org.jhotdraw8.fxcontrols
Record Class AbstractColorSlider.FillTaskRecord
java.lang.Object
java.lang.Record
org.jhotdraw8.fxcontrols.colorchooser.AbstractColorSlider.FillTaskRecord
- Enclosing class:
AbstractColorSlider
public static record AbstractColorSlider.FillTaskRecord(@NonNull javafx.scene.image.PixelBuffer<IntBuffer> pixelBuffer, @NonNull NamedColorSpace sourceColorSpace, @NonNull NamedColorSpace targetColorSpace, @NonNull NamedColorSpace displayColorSpace, float c0, float c1, float c2, float c3, int xIndex, int yIndex, float alpha, @NonNull ToIntFunction<Integer> rgbFilter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFillTaskRecord(@NonNull javafx.scene.image.PixelBuffer<IntBuffer> pixelBuffer, @NonNull NamedColorSpace sourceColorSpace, @NonNull NamedColorSpace targetColorSpace, @NonNull NamedColorSpace displayColorSpace, float c0, float c1, float c2, float c3, int xIndex, int yIndex, float alpha, @NonNull ToIntFunction<Integer> rgbFilter) Creates an instance of aFillTaskRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.floatc0()Returns the value of thec0record component.floatc1()Returns the value of thec1record component.floatc2()Returns the value of thec2record component.floatc3()Returns the value of thec3record component.Returns the value of thedisplayColorSpacerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepixelBufferrecord component.Returns the value of thergbFilterrecord component.Returns the value of thesourceColorSpacerecord component.Returns the value of thetargetColorSpacerecord component.final StringtoString()Returns a string representation of this record class.intxIndex()Returns the value of thexIndexrecord component.intyIndex()Returns the value of theyIndexrecord component.
-
Constructor Details
-
FillTaskRecord
public FillTaskRecord(@NonNull javafx.scene.image.PixelBuffer<IntBuffer> pixelBuffer, @NonNull NamedColorSpace sourceColorSpace, @NonNull NamedColorSpace targetColorSpace, @NonNull NamedColorSpace displayColorSpace, float c0, float c1, float c2, float c3, int xIndex, int yIndex, float alpha, @NonNull ToIntFunction<Integer> rgbFilter) Creates an instance of aFillTaskRecordrecord class.- Parameters:
pixelBuffer- the value for thepixelBufferrecord componentsourceColorSpace- the value for thesourceColorSpacerecord componenttargetColorSpace- the value for thetargetColorSpacerecord componentdisplayColorSpace- the value for thedisplayColorSpacerecord componentc0- the value for thec0record componentc1- the value for thec1record componentc2- the value for thec2record componentc3- the value for thec3record componentxIndex- the value for thexIndexrecord componentyIndex- the value for theyIndexrecord componentalpha- the value for thealpharecord componentrgbFilter- the value for thergbFilterrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
pixelBuffer
Returns the value of thepixelBufferrecord component.- Returns:
- the value of the
pixelBufferrecord component
-
sourceColorSpace
Returns the value of thesourceColorSpacerecord component.- Returns:
- the value of the
sourceColorSpacerecord component
-
targetColorSpace
Returns the value of thetargetColorSpacerecord component.- Returns:
- the value of the
targetColorSpacerecord component
-
displayColorSpace
Returns the value of thedisplayColorSpacerecord component.- Returns:
- the value of the
displayColorSpacerecord component
-
c0
public float c0()Returns the value of thec0record component.- Returns:
- the value of the
c0record component
-
c1
public float c1()Returns the value of thec1record component.- Returns:
- the value of the
c1record component
-
c2
public float c2()Returns the value of thec2record component.- Returns:
- the value of the
c2record component
-
c3
public float c3()Returns the value of thec3record component.- Returns:
- the value of the
c3record component
-
xIndex
public int xIndex()Returns the value of thexIndexrecord component.- Returns:
- the value of the
xIndexrecord component
-
yIndex
public int yIndex()Returns the value of theyIndexrecord component.- Returns:
- the value of the
yIndexrecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
rgbFilter
Returns the value of thergbFilterrecord component.- Returns:
- the value of the
rgbFilterrecord component
-