public class DefaultDiagramModel extends Object implements DiagramModel, Serializable
Constructor and Description |
---|
DefaultDiagramModel() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(Element element) |
void |
clear() |
void |
clearElements() |
void |
connect(Connection connection) |
void |
disconnect(Connection connection) |
Element |
findElement(String id) |
EndPoint |
findEndPoint(Element element,
String id) |
List<Connection> |
getConnections() |
List<Overlay> |
getDefaultConnectionOverlays() |
Connector |
getDefaultConnector() |
List<Element> |
getElements() |
int |
getMaxConnections() |
boolean |
isConnectionsDetachable() |
boolean |
isContainment() |
void |
removeElement(Element element) |
void |
setConnectionsDetachable(boolean connectionsDetachable) |
void |
setContainment(boolean containment) |
void |
setDefaultConnector(Connector defaultConnector) |
void |
setMaxConnections(int maxConnections) |
public List<Element> getElements()
getElements
in interface DiagramModel
public void addElement(Element element)
addElement
in interface DiagramModel
public void removeElement(Element element)
removeElement
in interface DiagramModel
public void clear()
public void clearElements()
clearElements
in interface DiagramModel
public List<Connection> getConnections()
getConnections
in interface DiagramModel
public void connect(Connection connection)
connect
in interface DiagramModel
public void disconnect(Connection connection)
disconnect
in interface DiagramModel
public Connector getDefaultConnector()
getDefaultConnector
in interface DiagramModel
public void setDefaultConnector(Connector defaultConnector)
public List<Overlay> getDefaultConnectionOverlays()
getDefaultConnectionOverlays
in interface DiagramModel
public boolean isConnectionsDetachable()
isConnectionsDetachable
in interface DiagramModel
public void setConnectionsDetachable(boolean connectionsDetachable)
public int getMaxConnections()
getMaxConnections
in interface DiagramModel
public void setMaxConnections(int maxConnections)
public Element findElement(String id)
findElement
in interface DiagramModel
public EndPoint findEndPoint(Element element, String id)
findEndPoint
in interface DiagramModel
public boolean isContainment()
isContainment
in interface DiagramModel
public void setContainment(boolean containment)
Copyright © 2020. All rights reserved.