GroupNodeStop
Represents a specialized type of GroupNode
in a composition hierarchy, serving as a container for child nodes.
GroupNodeStop
inherits from GroupNode
and extends its functionality. It can be used to define a specific grouping behavior or semantic grouping in a composition system. Instances of this class hold a mutable list of CompositionNode
entities as children.
Parameters
A mutable list of CompositionNode
instances to be managed by this group.
Properties
Custom attributes to be applied to the Node in addition to the Style attributes.
A mutable list of child nodes belonging to this group. Defaults to an empty list.
This CompositionNode's computed style. Where every style attribute is obtained by overwriting the Style in the following order:
Calculates the absolute transformation of the current node.
a map that stores user data
Functions
Filters a CompositionNode
and its hierarchy based on the provided filter function. The method recursively applies the filter to the node and its children, creating a new hierarchy that contains only the nodes for which the filter returns true. If the filter condition fails for the root node, null is returned.
Finds first CompositionNode to match the given predicate.
Finds all CompositionNode
instances in the current node hierarchy that satisfy the given filter. Traverses the hierarchy recursively, evaluating each node and its children.
find all descendant GroupNode nodes, including potentially this node
find all descendant ImageNode nodes, including potentially this node
find all descendant ShapeNode nodes, including potentially this node
Recursively finds all terminal nodes within the composition tree starting from the current node and applies the provided filter to determine which nodes to include in the result.
remove node from its parent CompositionNode
visit this CompositionNode and all descendant nodes and execute visitor