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 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 a FillTaskRecord record class.
      Parameters:
      pixelBuffer - the value for the pixelBuffer record component
      sourceColorSpace - the value for the sourceColorSpace record component
      targetColorSpace - the value for the targetColorSpace record component
      displayColorSpace - the value for the displayColorSpace record component
      c0 - the value for the c0 record component
      c1 - the value for the c1 record component
      c2 - the value for the c2 record component
      c3 - the value for the c3 record component
      xIndex - the value for the xIndex record component
      yIndex - the value for the yIndex record component
      alpha - the value for the alpha record component
      rgbFilter - the value for the rgbFilter record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pixelBuffer

      public @NonNull javafx.scene.image.PixelBuffer<IntBuffer> pixelBuffer()
      Returns the value of the pixelBuffer record component.
      Returns:
      the value of the pixelBuffer record component
    • sourceColorSpace

      public @NonNull NamedColorSpace sourceColorSpace()
      Returns the value of the sourceColorSpace record component.
      Returns:
      the value of the sourceColorSpace record component
    • targetColorSpace

      public @NonNull NamedColorSpace targetColorSpace()
      Returns the value of the targetColorSpace record component.
      Returns:
      the value of the targetColorSpace record component
    • displayColorSpace

      public @NonNull NamedColorSpace displayColorSpace()
      Returns the value of the displayColorSpace record component.
      Returns:
      the value of the displayColorSpace record component
    • c0

      public float c0()
      Returns the value of the c0 record component.
      Returns:
      the value of the c0 record component
    • c1

      public float c1()
      Returns the value of the c1 record component.
      Returns:
      the value of the c1 record component
    • c2

      public float c2()
      Returns the value of the c2 record component.
      Returns:
      the value of the c2 record component
    • c3

      public float c3()
      Returns the value of the c3 record component.
      Returns:
      the value of the c3 record component
    • xIndex

      public int xIndex()
      Returns the value of the xIndex record component.
      Returns:
      the value of the xIndex record component
    • yIndex

      public int yIndex()
      Returns the value of the yIndex record component.
      Returns:
      the value of the yIndex record component
    • alpha

      public float alpha()
      Returns the value of the alpha record component.
      Returns:
      the value of the alpha record component
    • rgbFilter

      public @NonNull ToIntFunction<Integer> rgbFilter()
      Returns the value of the rgbFilter record component.
      Returns:
      the value of the rgbFilter record component