java.lang.Object
org.praxislive.project.GraphElement
org.praxislive.project.GraphElement.Component
org.praxislive.project.GraphElement.Root
- Enclosing class:
GraphElement
A root component element. A normal root component has a type and ID, and
may have associated comments, commands, properties, children and/or
connections. A synthetic root is used for subgraphs, and has an empty ID
and no properties.
To create a Root element, see GraphBuilder.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.praxislive.project.GraphElement
GraphElement.Command, GraphElement.Comment, GraphElement.Component, GraphElement.Connection, GraphElement.Property, GraphElement.Root -
Method Summary
Methods inherited from class org.praxislive.project.GraphElement.Component
children, comments, connections, properties, typeMethods inherited from class org.praxislive.project.GraphElement
command, comment, connection, property
-
Method Details
-
id
Root ID.- Returns:
- ID
-
commands
Immutable list of commands.- Returns:
- commands
-
isSynthetic
public boolean isSynthetic()Query whether the root element is synthetic.- Returns:
- true if synthetic
-
hashCode
public int hashCode()- Overrides:
hashCodein classGraphElement.Component
-
equals
- Overrides:
equalsin classGraphElement.Component
-
toString
- Overrides:
toStringin classGraphElement.Component
-