public class AddNewNodeUIContextAction extends Object implements NodeUIContextAction
SEPARATOR
Constructor and Description |
---|
AddNewNodeUIContextAction() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
Icon |
getIcon() |
KeyStroke |
getKeyboardShortcut()
Returns an optional keyboard shortcut.
|
String |
getName() |
boolean |
matches(Set<JIPipeDesktopGraphNodeUI> selection)
Returns if the action shows up
|
void |
run(JIPipeDesktopGraphCanvasUI canvasUI,
Set<JIPipeDesktopGraphNodeUI> selection)
Runs the workload
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disableOnNonMatch, isDisplayedInToolbar, isHidden, showInCompartmentGraph, showInGraphCompartment, showInMultiSelectionPanel
public boolean matches(Set<JIPipeDesktopGraphNodeUI> selection)
NodeUIContextAction
matches
in interface NodeUIContextAction
selection
- the list of algorithm UIspublic void run(JIPipeDesktopGraphCanvasUI canvasUI, Set<JIPipeDesktopGraphNodeUI> selection)
NodeUIContextAction
run
in interface NodeUIContextAction
canvasUI
- the canvas that contains all algorithm UIsselection
- the current selection of algorithmspublic String getName()
getName
in interface NodeUIContextAction
public KeyStroke getKeyboardShortcut()
NodeUIContextAction
getKeyboardShortcut
in interface NodeUIContextAction
public String getDescription()
getDescription
in interface NodeUIContextAction
public Icon getIcon()
getIcon
in interface NodeUIContextAction
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.