use of au.gov.asd.tac.constellation.graph.interaction.plugins.select.PointSelectionPlugin in project constellation by constellation-app.
the class DefaultInteractionEventHandler method performPointSelection.
private void performPointSelection(final boolean toggleSelection, final boolean clearSelection, final GraphElementType elementType, final int elementId) {
final IntArray vxIds = new IntArray();
final IntArray txIds = new IntArray();
switch(elementType) {
case VERTEX:
vxIds.add(elementId);
break;
case TRANSACTION:
txIds.add(elementId);
break;
default:
break;
}
if (!(vxIds.isEmpty() && txIds.isEmpty() && !clearSelection)) {
Plugin selectPoint = new PointSelectionPlugin(vxIds, txIds, toggleSelection, clearSelection);
PluginExecution.withPlugin(selectPoint).executeLater(graph);
}
}
Aggregations