Record Class SyRenderNodeComposite
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.rendering.SyRenderNodeComposite
- Record Components:
name- The node name, for debugging purposesnodes- The nodes
- All Implemented Interfaces:
SyRenderNodeType
public record SyRenderNodeComposite(String name, List<SyRenderNodeType> nodes)
extends Record
implements SyRenderNodeType
A render node consisting of a composition of render nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionSyRenderNodeComposite(String name, List<SyRenderNodeType> nodes) A render node consisting of a composition of render nodes. -
Method Summary
Modifier and TypeMethodDescriptionstatic SyRenderNodeCompositecomposite(String name, SyRenderNodeType... nodes) Create a composite node from the list of nodes.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.nodes()Returns the value of thenodesrecord component.com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position()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
-
SyRenderNodeComposite
A render node consisting of a composition of render nodes.- Parameters:
name- The node name, for debugging purposesnodes- The nodes
-
-
Method Details
-
composite
Create a composite node from the list of nodes.- Parameters:
name- The node name, for debugging purposesnodes- The nodes- Returns:
- A composite node
-
position
public com.io7m.jtensors.core.parameterized.vectors.PVector2I<SySpaceComponentRelativeType> position()- Specified by:
positionin interfaceSyRenderNodeType- Returns:
- The position of the node relative to the component
-
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
-
nodes
-