Record Class FigureScene.TextOp
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.layout.FigureScene.TextOp
- All Implemented Interfaces:
FigureScene.Op
- Enclosing class:
FigureScene
public static record FigureScene.TextOp(Transform transform, double x, double baseline, List<TextMeasurer.Segment> segments, double size, Integer fill, double fillAlpha, Integer stroke, double strokeAlpha, double strokeWidth, boolean oblique)
extends Record
implements FigureScene.Op
一段文字;
x、baseline 為使用者座標;fill/stroke 為 null 表示不填或不描邊-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublebaseline()Returns the value of thebaselinerecord component.final booleanIndicates whether some other object is "equal to" this one.fill()Returns the value of thefillrecord component.doubleReturns the value of thefillAlpharecord component.final inthashCode()Returns a hash code value for this object.booleanoblique()Returns the value of theobliquerecord component.segments()Returns the value of thesegmentsrecord component.doublesize()Returns the value of thesizerecord 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.doublex()Returns the value of thexrecord component.
-
Constructor Details
-
TextOp
public TextOp(Transform transform, double x, double baseline, List<TextMeasurer.Segment> segments, double size, Integer fill, double fillAlpha, Integer stroke, double strokeAlpha, double strokeWidth, boolean oblique) Creates an instance of aTextOprecord class.- Parameters:
transform- the value for thetransformrecord componentx- the value for thexrecord componentbaseline- the value for thebaselinerecord componentsegments- the value for thesegmentsrecord componentsize- the value for thesizerecord componentfill- the value for thefillrecord componentfillAlpha- the value for thefillAlpharecord componentstroke- the value for thestrokerecord componentstrokeAlpha- the value for thestrokeAlpharecord componentstrokeWidth- the value for thestrokeWidthrecord componentoblique- the value for theobliquerecord 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
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
baseline
public double baseline()Returns the value of thebaselinerecord component.- Returns:
- the value of the
baselinerecord component
-
segments
Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-
size
public double size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord 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
-
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
-
oblique
public boolean oblique()Returns the value of theobliquerecord component.- Returns:
- the value of the
obliquerecord component
-