Interface ChannelDisplaySequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ChannelDisplaySequence.SimpleHolder,WaveformPresentationGroupSequence.Item
- Enclosing class:
- ChannelDisplaySequence
A class implementing this interface can hold attributes which contain the DICOM tag "Channel Display Sequence" (see
ChannelDisplaySequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ChannelDisplaySequenceAdds a new Channel Display Sequence (seeChannelDisplaySequence) with initial capacity 1 (seeensureChannelDisplaySequence(int)) if it does not already exist.default ChannelDisplaySequenceensureChannelDisplaySequence(int initialCapacity) Adds a new Channel Display Sequence (seeChannelDisplaySequence) if it does not already exist.default ChannelDisplaySequencedefault ChannelDisplaySequencenewChannelDisplaySequence(int initialCapacity) Adds a new Channel Display Sequence.default voidRemoves the Channel Display Sequence (seeChannelDisplaySequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
- Parameters:
attributes- An attributes object containing the Channel Display Sequence (seeChannelDisplaySequence)- Returns:
- A wrapper object implementing the
ChannelDisplaySequence.Holderinterface.
-
builder
- Returns:
- a
ChannelDisplaySequence.Holder.Builderto create Channel Display Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theChannelDisplaySequence.Holder.Builder.- Returns:
- a
ChannelDisplaySequence.Holder.Builderto create Channel Display Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getChannelDisplaySequence
- Returns:
- the Channel Display Sequence (see
ChannelDisplaySequence)
-
newChannelDisplaySequence
Adds a new Channel Display Sequence. (seeChannelDisplaySequence)- Parameters:
initialCapacity- the initial capacity for the new Channel Display Sequence
-
ensureChannelDisplaySequence
Adds a new Channel Display Sequence (seeChannelDisplaySequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Channel Display Sequence is created.- Returns:
- Either the already existing Channel Display Sequence (see
ChannelDisplaySequence) or a new one with capacityinitialCapacity.
-
ensureChannelDisplaySequence
Adds a new Channel Display Sequence (seeChannelDisplaySequence) with initial capacity 1 (seeensureChannelDisplaySequence(int)) if it does not already exist.- Returns:
- Either the already existing Channel Display Sequence (see
ChannelDisplaySequence) or a new one with capacity 1.
-
containsChannelDisplaySequence
default boolean containsChannelDisplaySequence()- Returns:
- Whether it contains the Channel Display Sequence (see
ChannelDisplaySequence)
-
removeChannelDisplaySequence
default void removeChannelDisplaySequence()Removes the Channel Display Sequence (seeChannelDisplaySequence
-