Class GraphBuilder

java.lang.Object
org.praxislive.project.GraphBuilder

public final class GraphBuilder extends Object
Builders for graph component elements.
  • Method Details

    • component

      public static GraphBuilder.Component component(org.praxislive.core.ComponentType type)
      Create a component element builder for the provided component type.
      Parameters:
      type - component type
      Returns:
      component builder
    • component

      public static GraphBuilder.Component component(GraphElement.Component component)
      Create a component element builder initialized with the type and sub-elements of the provided component element.
      Parameters:
      component - base component
      Returns:
      builder
    • root

      public static GraphBuilder.Root root(String id, org.praxislive.core.ComponentType type)
      Create a root element builder for the provided ID and type.
      Parameters:
      id - root ID
      type - root type
      Returns:
      builder
    • root

      public static GraphBuilder.Root root(GraphElement.Root root)
      Create a root element builder initialized with the ID, type and sub-elements of the provided root element. If the provided root is synthetic then the builder will be too.
      Parameters:
      root - base root
      Returns:
      builder
    • syntheticRoot

      public static GraphBuilder.Root syntheticRoot()
      Create a root element builder for a synthetic root.
      Returns:
      builder