INode.Type
Constructor and Description |
---|
Node(int x,
int y,
java.lang.String name) |
Node(java.lang.String name) |
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.
|
static int |
getRadius() |
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.
|
public Node(java.lang.String name)
public Node(int x, int y, java.lang.String name)
public void setPosition(int x, int y)
INode
setPosition
in interface INode
x
- position x.y
- position y.public void setName(java.lang.String name)
INode
public void setColor(java.awt.Color color)
INode
public void setScale(int scale)
INode
public void setType(INode.Type type)
INode
public int getX()
INode
public int getY()
INode
public int getR()
INode
public static int getRadius()
public java.lang.String getName()
INode
public java.awt.Color getColor()
INode
public int getScale()
INode
public INode.Type getType()
INode