Record Class FigureScene.PathOp

java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.layout.FigureScene.PathOp
All Implemented Interfaces:
FigureScene.Op
Enclosing class:
FigureScene

public static record FigureScene.PathOp(Transform transform, PathData path, Integer fill, double fillAlpha, boolean evenOdd, Integer stroke, double strokeAlpha, double strokeWidth, SvgStyle.Cap cap, SvgStyle.Join join, double miterLimit, double[] dashes, double dashOffset) extends Record implements FigureScene.Op
路徑;fill/stroke 為 null 表示不填或不畫線
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathOp(Transform transform, PathData path, Integer fill, double fillAlpha, boolean evenOdd, Integer stroke, double strokeAlpha, double strokeWidth, SvgStyle.Cap cap, SvgStyle.Join join, double miterLimit, double[] dashes, double dashOffset)
    Creates an instance of a PathOp record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    cap()
    Returns the value of the cap record component.
    double[]
    Returns the value of the dashes record component.
    double
    Returns the value of the dashOffset record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the evenOdd record component.
    Returns the value of the fill record component.
    double
    Returns the value of the fillAlpha record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the join record component.
    double
    Returns the value of the miterLimit record component.
    Returns the value of the path record component.
    Returns the value of the stroke record component.
    double
    Returns the value of the strokeAlpha record component.
    double
    Returns the value of the strokeWidth record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the transform record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PathOp

      public PathOp(Transform transform, PathData path, Integer fill, double fillAlpha, boolean evenOdd, Integer stroke, double strokeAlpha, double strokeWidth, SvgStyle.Cap cap, SvgStyle.Join join, double miterLimit, double[] dashes, double dashOffset)
      Creates an instance of a PathOp record class.
      Parameters:
      transform - the value for the transform record component
      path - the value for the path record component
      fill - the value for the fill record component
      fillAlpha - the value for the fillAlpha record component
      evenOdd - the value for the evenOdd record component
      stroke - the value for the stroke record component
      strokeAlpha - the value for the strokeAlpha record component
      strokeWidth - the value for the strokeWidth record component
      cap - the value for the cap record component
      join - the value for the join record component
      miterLimit - the value for the miterLimit record component
      dashes - the value for the dashes record component
      dashOffset - the value for the dashOffset 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 the compare method from their corresponding wrapper classes.
      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.
    • transform

      public Transform transform()
      Returns the value of the transform record component.
      Specified by:
      transform in interface FigureScene.Op
      Returns:
      the value of the transform record component
    • path

      public PathData path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • fill

      public Integer fill()
      Returns the value of the fill record component.
      Returns:
      the value of the fill record component
    • fillAlpha

      public double fillAlpha()
      Returns the value of the fillAlpha record component.
      Returns:
      the value of the fillAlpha record component
    • evenOdd

      public boolean evenOdd()
      Returns the value of the evenOdd record component.
      Returns:
      the value of the evenOdd record component
    • stroke

      public Integer stroke()
      Returns the value of the stroke record component.
      Returns:
      the value of the stroke record component
    • strokeAlpha

      public double strokeAlpha()
      Returns the value of the strokeAlpha record component.
      Returns:
      the value of the strokeAlpha record component
    • strokeWidth

      public double strokeWidth()
      Returns the value of the strokeWidth record component.
      Returns:
      the value of the strokeWidth record component
    • cap

      public SvgStyle.Cap cap()
      Returns the value of the cap record component.
      Returns:
      the value of the cap record component
    • join

      public SvgStyle.Join join()
      Returns the value of the join record component.
      Returns:
      the value of the join record component
    • miterLimit

      public double miterLimit()
      Returns the value of the miterLimit record component.
      Returns:
      the value of the miterLimit record component
    • dashes

      public double[] dashes()
      Returns the value of the dashes record component.
      Returns:
      the value of the dashes record component
    • dashOffset

      public double dashOffset()
      Returns the value of the dashOffset record component.
      Returns:
      the value of the dashOffset record component