Interface DataManipulationHandler
-
public interface DataManipulationHandlerHandler for network chart's structure manipulation. It can react on adding, removing and editing nodes and edges.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NetworkUpdatesonAdd(Edge edge, NetworkChartContext context)Handles event which is triggered after clicking on 'add edge' button.NetworkUpdatesonAdd(Node node, NetworkChartContext context)Handles event which is triggered after clicking on 'add node' button.NetworkUpdatesonEdit(EdgeUpdate edgeUpdate, NetworkChartContext context)Handles event which is triggered after clicking on 'edit edge' button.NetworkUpdatesonEdit(Node node, NetworkChartContext context)Handles event which is triggered after clicking on 'edit node' button.NetworkUpdatesonRemove(Edges edges, NetworkChartContext context)Handles event which is triggered after clicking on 'remove edges' button.NetworkUpdatesonRemove(Nodes nodes, NetworkChartContext context)Handles event which is triggered after clicking on 'remove nodes' button.
-
-
-
Method Detail
-
onAdd
NetworkUpdates onAdd(Node node, NetworkChartContext context)
Handles event which is triggered after clicking on 'add node' button.- Parameters:
node- - newly created node. Usually contain only information about its coordinates on a canvas.context- - with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onEdit
NetworkUpdates onEdit(Node node, NetworkChartContext context)
Handles event which is triggered after clicking on 'edit node' button.- Parameters:
node- - edited node.context- - with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onRemove
NetworkUpdates onRemove(Nodes nodes, NetworkChartContext context)
Handles event which is triggered after clicking on 'remove nodes' button.- Parameters:
nodes- - list of nodes which should be removed.context- - with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onAdd
NetworkUpdates onAdd(Edge edge, NetworkChartContext context)
Handles event which is triggered after clicking on 'add edge' button.- Parameters:
edge- - newly created edge.context- - with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onEdit
NetworkUpdates onEdit(EdgeUpdate edgeUpdate, NetworkChartContext context)
Handles event which is triggered after clicking on 'edit edge' button.- Parameters:
edgeUpdate- - object contains information about previous connection between two nodes and current connection.context- - with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onRemove
NetworkUpdates onRemove(Edges edges, NetworkChartContext context)
Handles event which is triggered after clicking on 'remove edges' button.- Parameters:
edges- - list of edges which should be removed.context- - with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
-