Record Class SyRenderNodeText
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.rendering.SyRenderNodeText
- Record Components:
name- The node name, for debugging purposesposition- The positionsize- The sizefillPaint- The paint to be used to fill textfont- The fonttext- The text
- All Implemented Interfaces:
SyRenderNodePrimitiveType, SyRenderNodeType
public record SyRenderNodeText(String name, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position, com.io7m.jregions.core.parameterized.sizes.PAreaSizeI<SySpaceComponentRelativeType> size, SyPaintFillType fillPaint, SyFontType font, SyText text)
extends Record
implements SyRenderNodePrimitiveType
A text render node.
-
Constructor Summary
ConstructorsConstructorDescriptionSyRenderNodeText(String name, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position, com.io7m.jregions.core.parameterized.sizes.PAreaSizeI<SySpaceComponentRelativeType> size, SyPaintFillType fillPaint, SyFontType font, SyText text) A text render node. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefillPaintrecord component.font()Returns the value of thefontrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position()Returns the value of thepositionrecord component.com.io7m.jregions.core.parameterized.sizes.PAreaSizeI<SySpaceComponentRelativeType> size()Returns the value of thesizerecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SyRenderNodeType
boundingArea
-
Constructor Details
-
SyRenderNodeText
public SyRenderNodeText(String name, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position, com.io7m.jregions.core.parameterized.sizes.PAreaSizeI<SySpaceComponentRelativeType> size, SyPaintFillType fillPaint, SyFontType font, SyText text) A text render node.- Parameters:
name- The node name, for debugging purposesposition- The positionsize- The sizefillPaint- The paint to be used to fill textfont- The fonttext- The text
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceSyRenderNodeType- Returns:
- the value of the
namerecord component
-
position
public com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position()Returns the value of thepositionrecord component.- Specified by:
positionin interfaceSyRenderNodeType- Returns:
- the value of the
positionrecord component
-
size
Returns the value of thesizerecord component.- Specified by:
sizein interfaceSyRenderNodeType- Returns:
- the value of the
sizerecord component
-
fillPaint
-
font
-
text
-