public class NodeConnector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static NodeConnector |
instance
A static instance of the node connector.
|
Constructor and Description |
---|
NodeConnector() |
Modifier and Type | Method and Description |
---|---|
static void |
connect(Node n1,
int i1,
Node n2,
int i2)
Connects an output pin of a node to the input pin of another node.
|
void |
connectTo(Node n1,
int i1,
Node n2,
int i2)
Connects an output pin of a node to the input pin of another node.
|
static void |
cutFrom(Node n1,
int i1,
Node n2,
int i2)
Cuts the directed link between a node and another one.
|
static void |
disconnect(Node n1,
int i1,
Node n2,
int i2)
Disconnects an output pin of a node to the input pin of another node.
|
void |
disconnectFrom(Node n1,
int i1,
Node n2,
int i2)
Disconnects an output pin of a node to the input pin of another node.
|
public static final transient NodeConnector instance
public static void disconnect(Node n1, int i1, Node n2, int i2)
n1
- The first nodei1
- The index of the output pin on n1
n2
- The second nodei2
- The index of the output pin on n2
public static void cutFrom(Node n1, int i1, Node n2, int i2)
n1
- The first nodei1
- The index of the output pin on n1
n2
- The second nodei2
- The index of the output pin on n2
public static void connect(Node n1, int i1, Node n2, int i2)
n1
- The first nodei1
- The index of the output pin on n1
n2
- The second nodei2
- The index of the output pin on n2
public void connectTo(Node n1, int i1, Node n2, int i2)
n1
- The first nodei1
- The index of the output pin on n1
n2
- The second nodei2
- The index of the output pin on n2
Copyright © Sylvain HallĂ©. All Rights Reserved.