Class NamedChannels
Object
NamedChannels
A collection of
Channels each with an associated unique-name.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionNamedChannels(boolean rgb) Creates a newNamedChannelsinstance.NamedChannels(Stream<NamedChannels> channelsToCombine) Creates by combining multiple existingNamedChannels. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NamedChannels
public NamedChannels(boolean rgb) Creates a newNamedChannelsinstance.- Parameters:
rgb- whether the channels originate from an RGBStackor not.
-
NamedChannels
Creates by combining multiple existingNamedChannels.- Parameters:
channelsToCombine- theNamedChannelsto combine.- Throws:
OperationFailedException- if the RGB-state is inconsistent acrossStacks.
-
-
Method Details
-
iterator
-
add
Adds aChannelwith a name.- Parameters:
name- a unique name for the channel.channel- the channel to add.- Throws:
OperationFailedException- if a channel with the same name has already been previously added.
-
names
The names of theChannels.- Returns:
- the channel names.
-
isRgb
public boolean isRgb()Whether the channels originate from aStackthat is RGB, or not.
-