public abstract class InteractiveImageCommand extends InteractiveCommand
InteractiveCommand
which supports syncing
DatasetView
and Dataset
inputs in addition to only
Display
s.
See the BrightnessContrast
and Threshold
commands in
ij-commands
for examples.
Modifier and Type | Field and Description |
---|---|
protected ImageDisplayService |
imageDisplayService |
moduleService, pluginService
Constructor and Description |
---|
InteractiveImageCommand(String... listenerNames)
Creates a new interactive image command.
|
Modifier and Type | Method and Description |
---|---|
protected void |
updateInput(ModuleItem<?> item) |
asType, cancel, log, onEvent, preview, update
cancel, context, getCancelReason, getContext, getInfo, getInput, getOutput, isCanceled, saveInputs, setContext, setInput, setOutput, uncancel
getDelegateObject, getInputs, getOutputs, initialize, isInputResolved, isOutputResolved, resolveInput, resolveOutput, setInputs, setOutputs, unresolveInput, unresolveOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addInput, addInput, addOutput, addOutput, removeInput, removeOutput, run
getDelegateObject, getInputs, getOutputs, initialize, isInputResolved, isOutputResolved, isResolved, resolveInput, resolveOutput, setInputs, setOutputs, setResolved, unresolveInput, unresolveOutput
protected ImageDisplayService imageDisplayService
public InteractiveImageCommand(String... listenerNames)
listenerNames
- The list of names of inputs to keep in sync when the
active display changes. Each input must be a Display
,
DatasetView
or Dataset
.protected void updateInput(ModuleItem<?> item)
updateInput
in class InteractiveCommand
Copyright © 2014–2022 ImageJ. All rights reserved.