|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the class that manages the model.
Method Summary | |
void |
addConnection(Project project,
Node startNode,
Node endNode,
Line graphicalRepresentation,
boolean directed)
Adds a connection to a project |
void |
addNode(Project project,
Node graphicalRepresentation)
Adds a node to a project. |
int |
getNextID()
Returns the next ID for a node or a connection. |
void |
removeConnection(Project project,
Connection connection)
Removes a connection from a project |
void |
removeNode(Project project,
Node node)
Removes a node from the project. |
Method Detail |
public int getNextID()
public void addNode(Project project, Node graphicalRepresentation)
project
- the projectgraphicalRepresentation
- the graphical representation of the nodepublic void removeNode(Project project, Node node)
project
- the projectnode
- the node
IllegalArgumentException
- if there are still connections at this
nodepublic void addConnection(Project project, Node startNode, Node endNode, Line graphicalRepresentation, boolean directed)
project
- the projectstartNode
- the first nodeendNode
- the second nodegraphicalRepresentation
- the graphical representation of the
connection (i.e. a line)directed
- whether the connection shall be directedpublic void removeConnection(Project project, Connection connection)
project
- the projectconnection
- the connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |