return Collections.emptySet();\r
return entity.getTerminalConnections(result);\r
}\r
-\r
- @Override\r
- public IElement newBranchPoint(IElement connection) {\r
- ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY);\r
- if (entity == null)\r
- throw new IllegalArgumentException("element '" + connection + "' is not a connection element");\r
- return entity.newBranchPoint();\r
- }\r
-\r
- @Override\r
- public IElement newEdge(IElement connection) {\r
- ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY);\r
- if (entity == null)\r
- throw new IllegalArgumentException("element '" + connection + "' is not a connection element");\r
- return entity.newEdge();\r
- }\r
-\r
- @Override\r
- public void removeBranchPoint(IElement connection, IElement branchPoint) {\r
- ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY);\r
- if (entity == null)\r
- throw new IllegalArgumentException("element '" + connection + "' is not a connection element");\r
- entity.removeBranchPoint(branchPoint);\r
- }\r
-\r
- @Override\r
- public void removeEdge(IElement connection, IElement edge) {\r
- ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY);\r
- if (entity == null)\r
- throw new IllegalArgumentException("element '" + connection + "' is not a connection element");\r
- entity.removeEdge(edge);\r
- }\r
}\r
\r
static final class ConnectionSceneGraph implements SceneGraph {\r