Constructor and Description |
---|
NamedChannels(boolean rgb) |
NamedChannels(java.util.stream.Stream<NamedChannels> channelsToCombine)
Creates by combining multiple existing existing
NamedChannels . |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
Channel channel)
Adds a
Channel with a name. |
boolean |
isRgb()
Whether the channels originate from a
Stack that is RGB, or not. |
Iterator<Map.Entry<String,Channel>> |
iterator() |
Set<String> |
names()
The names of the
Channel s. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public NamedChannels(boolean rgb)
public NamedChannels(java.util.stream.Stream<NamedChannels> channelsToCombine) throws OperationFailedException
NamedChannels
.channelsToCombine
- the NamedChannels
to combine.OperationFailedException
- if the RGB-state is inconsistent across Stack
s.public void add(String name, Channel channel) throws OperationFailedException
Channel
with a name.name
- a unique name for the channel.channel
- the channel to add.OperationFailedException
- if a channel with the same name, has already been previously
added.public boolean isRgb()
Stack
that is RGB, or not.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.