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
ConstructorsConstructorDescriptionPathOp(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 aPathOprecord class. -
Method Summary
Modifier and TypeMethodDescriptioncap()Returns the value of thecaprecord component.double[]dashes()Returns the value of thedashesrecord component.doubleReturns the value of thedashOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanevenOdd()Returns the value of theevenOddrecord component.fill()Returns the value of thefillrecord component.doubleReturns the value of thefillAlpharecord component.final inthashCode()Returns a hash code value for this object.join()Returns the value of thejoinrecord component.doubleReturns the value of themiterLimitrecord component.path()Returns the value of thepathrecord component.stroke()Returns the value of thestrokerecord component.doubleReturns the value of thestrokeAlpharecord component.doubleReturns the value of thestrokeWidthrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.
-
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 aPathOprecord class.- Parameters:
transform- the value for thetransformrecord componentpath- the value for thepathrecord componentfill- the value for thefillrecord componentfillAlpha- the value for thefillAlpharecord componentevenOdd- the value for theevenOddrecord componentstroke- the value for thestrokerecord componentstrokeAlpha- the value for thestrokeAlpharecord componentstrokeWidth- the value for thestrokeWidthrecord componentcap- the value for thecaprecord componentjoin- the value for thejoinrecord componentmiterLimit- the value for themiterLimitrecord componentdashes- the value for thedashesrecord componentdashOffset- the value for thedashOffsetrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
transform
Returns the value of thetransformrecord component.- Specified by:
transformin interfaceFigureScene.Op- Returns:
- the value of the
transformrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
fill
Returns the value of thefillrecord component.- Returns:
- the value of the
fillrecord component
-
fillAlpha
public double fillAlpha()Returns the value of thefillAlpharecord component.- Returns:
- the value of the
fillAlpharecord component
-
evenOdd
public boolean evenOdd()Returns the value of theevenOddrecord component.- Returns:
- the value of the
evenOddrecord component
-
stroke
Returns the value of thestrokerecord component.- Returns:
- the value of the
strokerecord component
-
strokeAlpha
public double strokeAlpha()Returns the value of thestrokeAlpharecord component.- Returns:
- the value of the
strokeAlpharecord component
-
strokeWidth
public double strokeWidth()Returns the value of thestrokeWidthrecord component.- Returns:
- the value of the
strokeWidthrecord component
-
cap
Returns the value of thecaprecord component.- Returns:
- the value of the
caprecord component
-
join
Returns the value of thejoinrecord component.- Returns:
- the value of the
joinrecord component
-
miterLimit
public double miterLimit()Returns the value of themiterLimitrecord component.- Returns:
- the value of the
miterLimitrecord component
-
dashes
public double[] dashes()Returns the value of thedashesrecord component.- Returns:
- the value of the
dashesrecord component
-
dashOffset
public double dashOffset()Returns the value of thedashOffsetrecord component.- Returns:
- the value of the
dashOffsetrecord component
-