Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: FxObj
Wraps FXGL's DialogueGraph (com.almasb.fxgl.cutscene.dialogue.DialogueGraph), a minimally- checked node + edge container that drives a dialogue scene. Nodes are stored in an observable Map keyed by an internally- tracked unique id; edges are stored in an observable List. The graph also tracks the start-node id, which the dialogue scene enters first.
DialogueGraph (int UniqueID = 0)
Creates a new empty DialogueGraph.
UniqueID is the initial value of the node-id counter (default 0).adopt (object Ajo)
Wraps an existing DialogueGraph AussomJavaObject.
Ajo is an AussomJavaObject around a DialogueGraph.A new wrapper.addNode (object NodeObj)
Adds a DialogueNode to this graph, allocating its id from the internal counter.
NodeObj is a DialogueNode (or subclass) wrapper.this objectremoveNode (object NodeObj)
Removes the given node from this graph (and any incident edges).
NodeObj is a DialogueNode (or subclass) wrapper.this objectaddEdge (object SourceObj, object TargetObj, int OptionID = 0)
Adds an edge from Source to Target with the given option id (defaults to 0).
SourceObj is a DialogueNode wrapper.TargetObj is a DialogueNode wrapper.OptionID is the source option id (default 0).this objectaddEdgeObj (object EdgeObj)
Adds a pre-built DialogueEdge to this graph.
EdgeObj is a DialogueEdge wrapper.this objectremoveEdge (object SourceObj, object TargetObj)
Removes the edge between Source and Target (any option id).
SourceObj is a DialogueNode wrapper.TargetObj is a DialogueNode wrapper.this objectremoveEdgeObj (object EdgeObj)
Removes a specific DialogueEdge from this graph.
EdgeObj is a DialogueEdge wrapper.this objectremoveChoiceEdge (object SourceObj, int OptionID, object TargetObj)
Removes the choice-edge from Source to Target using OptionID.
SourceObj is a DialogueNode wrapper.OptionID is the option id.TargetObj is a DialogueNode wrapper.this objectcontainsNode (object NodeObj)
Returns whether the graph contains the given node.
NodeObj is a DialogueNode wrapper.A bool.findNodeID (object NodeObj)
Returns the id of the node in this graph, or -1 if absent.
NodeObj is a DialogueNode wrapper.An int.getNodeByID (int Id)
Returns the node with the given id. Throws if no such node exists.
Id is the node id.An AussomJavaObject around a DialogueNode.getStartNodeID ()
Returns the start-node id.
An int.setStartNodeID (int Id)
Sets the start-node id.
Id is the new start-node id.this objectgetStartNode ()
Returns the start node (looked up by id).
An AussomJavaObject around a DialogueNode.startNodeIDProperty ()
Returns the IntegerProperty backing the start-node id.
An AussomJavaObject around an IntegerProperty.nextNode (object NodeObj)
Returns the next node reachable from Node along any edge, or null if none exists.
NodeObj is a DialogueNode wrapper.An AussomJavaObject around a DialogueNode, or null.nextNodeByOption (object NodeObj, int OptionID)
Returns the next node reachable from Node along the edge with the given OptionID, or null if none exists.
NodeObj is a DialogueNode wrapper.OptionID is the option id.An AussomJavaObject around a DialogueNode, or null.getNodes ()
Returns the underlying observable Map<Int, DialogueNode>.
An AussomJavaObject around an ObservableMap.getEdges ()
Returns the underlying observable List
.
An AussomJavaObject around an ObservableList.copy ()
Returns a shallow copy of this graph (same node and edge references).
A new DialogueGraph wrapper.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.