Package org.primefaces.model.diagram
Class DefaultDiagramModel
java.lang.Object
org.primefaces.model.diagram.DefaultDiagramModel
- All Implemented Interfaces:
Serializable
,DiagramModel
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Element element) void
clear()
void
void
connect
(Connection connection) void
disconnect
(Connection connection) findElement
(String id) findEndPoint
(Element element, String id) int
boolean
boolean
void
removeElement
(Element element) void
setConnectionsDetachable
(boolean connectionsDetachable) void
setContainment
(boolean containment) void
setDefaultConnector
(Connector defaultConnector) void
setMaxConnections
(int maxConnections)
-
Constructor Details
-
DefaultDiagramModel
public DefaultDiagramModel()
-
-
Method Details
-
getElements
- Specified by:
getElements
in interfaceDiagramModel
-
addElement
- Specified by:
addElement
in interfaceDiagramModel
-
removeElement
- Specified by:
removeElement
in interfaceDiagramModel
-
clear
public void clear() -
clearElements
public void clearElements()- Specified by:
clearElements
in interfaceDiagramModel
-
getConnections
- Specified by:
getConnections
in interfaceDiagramModel
-
connect
- Specified by:
connect
in interfaceDiagramModel
-
disconnect
- Specified by:
disconnect
in interfaceDiagramModel
-
getDefaultConnector
- Specified by:
getDefaultConnector
in interfaceDiagramModel
-
setDefaultConnector
-
getDefaultConnectionOverlays
- Specified by:
getDefaultConnectionOverlays
in interfaceDiagramModel
-
isConnectionsDetachable
public boolean isConnectionsDetachable()- Specified by:
isConnectionsDetachable
in interfaceDiagramModel
-
setConnectionsDetachable
public void setConnectionsDetachable(boolean connectionsDetachable) -
getMaxConnections
public int getMaxConnections()- Specified by:
getMaxConnections
in interfaceDiagramModel
-
setMaxConnections
public void setMaxConnections(int maxConnections) -
findElement
- Specified by:
findElement
in interfaceDiagramModel
-
findEndPoint
- Specified by:
findEndPoint
in interfaceDiagramModel
-
isContainment
public boolean isContainment()- Specified by:
isContainment
in interfaceDiagramModel
-
setContainment
public void setContainment(boolean containment)
-