Record Class SyRenderNodeShape
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.rendering.SyRenderNodeShape
- Record Components:
name- The node name, for debugging purposesposition- The position offset for this nodeedgePaint- The edge paintfillPaint- The fill paintshape- The shape
- All Implemented Interfaces:
SyRenderNodePrimitiveType, SyRenderNodeType
public record SyRenderNodeShape(String name, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position, Optional<SyPaintEdgeType> edgePaint, Optional<SyPaintFillType> fillPaint, SyShapeType<SySpaceComponentRelativeType> shape)
extends Record
implements SyRenderNodePrimitiveType
A render node consisting of a shape.
-
Constructor Summary
ConstructorsConstructorDescriptionSyRenderNodeShape(String name, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position, Optional<SyPaintEdgeType> edgePaint, Optional<SyPaintFillType> fillPaint, SyShapeType<SySpaceComponentRelativeType> shape) A render node consisting of a shape. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theedgePaintrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefillPaintrecord 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.shape()Returns the value of theshaperecord component.com.io7m.jregions.core.parameterized.sizes.PAreaSizeI<SySpaceComponentRelativeType> size()final StringtoString()Returns a string representation of this record class.Methods inherited from interface SyRenderNodeType
boundingArea
-
Constructor Details
-
SyRenderNodeShape
public SyRenderNodeShape(String name, com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position, Optional<SyPaintEdgeType> edgePaint, Optional<SyPaintFillType> fillPaint, SyShapeType<SySpaceComponentRelativeType> shape) A render node consisting of a shape.- Parameters:
name- The node name, for debugging purposesposition- The position offset for this nodeedgePaint- The edge paintfillPaint- The fill paintshape- The shape
-
-
Method Details
-
size
- Specified by:
sizein interfaceSyRenderNodeType- Returns:
- The size of the node
-
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
-
edgePaint
-
fillPaint
-
shape
-