public class NodeContextActionWrapperUIContextAction extends Object implements NodeUIContextAction
SEPARATOR
Constructor and Description |
---|
NodeContextActionWrapperUIContextAction(JIPipeNodeInfo nodeInfo,
String name,
String description,
Icon icon,
Method method) |
Modifier and Type | Method and Description |
---|---|
boolean |
disableOnNonMatch()
Determines if an item should be disabled or removed if it does not match
|
String |
getDescription() |
Icon |
getIcon() |
Method |
getMethod() |
String |
getName() |
JIPipeNodeInfo |
getNodeInfo() |
boolean |
matches(Set<JIPipeNodeUI> selection)
Returns if the action shows up
|
void |
run(JIPipeGraphCanvasUI canvasUI,
Set<JIPipeNodeUI> selection)
Runs the workload
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyboardShortcut, isHidden, showInCompartmentGraph, showInGraphCompartment
public NodeContextActionWrapperUIContextAction(JIPipeNodeInfo nodeInfo, String name, String description, Icon icon, Method method)
public boolean matches(Set<JIPipeNodeUI> selection)
NodeUIContextAction
matches
in interface NodeUIContextAction
selection
- the list of algorithm UIspublic void run(JIPipeGraphCanvasUI canvasUI, Set<JIPipeNodeUI> 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 String getDescription()
getDescription
in interface NodeUIContextAction
public Icon getIcon()
getIcon
in interface NodeUIContextAction
public JIPipeNodeInfo getNodeInfo()
public Method getMethod()
public boolean disableOnNonMatch()
NodeUIContextAction
disableOnNonMatch
in interface NodeUIContextAction
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.