public interface INode
Modifier and Type | Interface and Description |
---|---|
static class |
INode.Type |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Gets the color of the node.
|
java.lang.String |
getName()
Gets the name of the node.
|
int |
getR()
Gets the radius of the node.
|
int |
getScale()
Gets the scale of the node.
|
INode.Type |
getType()
Gets the type of the node: input, hidden, output.
|
int |
getX()
Gets the position x of the node.
|
int |
getY()
Gets the position y of the node.
|
void |
setColor(java.awt.Color color)
Sets the color of the node.
|
void |
setName(java.lang.String name)
Sets the name of the node.
|
void |
setPosition(int x,
int y)
Sets the position (x,y) of the node.
|
void |
setScale(int scale)
Sets the scale of all nodes.
|
void |
setType(INode.Type type)
Sets the type of the node: input, hidden, output.
|
void setPosition(int x, int y)
x
- position x.y
- position y.void setName(java.lang.String name)
name
- name of the node.void setColor(java.awt.Color color)
color
- color of the node.void setScale(int scale)
scale
- scale of all nodes.void setType(INode.Type type)
type
- int getX()
int getY()
int getR()
java.lang.String getName()
java.awt.Color getColor()
int getScale()
INode.Type getType()