Interface BlendingSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
PresentationStateBlendingModule
- All Known Implementing Classes:
BlendingSequence.SimpleHolder,BlendingSoftcopyPresentationStateIOD
- Enclosing class:
- BlendingSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Blending Sequence" (see
BlendingSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault BlendingSequenceAdds a new Blending Sequence (seeBlendingSequence) with initial capacity 1 (seeensureBlendingSequence(int)) if it does not already exist.default BlendingSequenceensureBlendingSequence(int initialCapacity) Adds a new Blending Sequence (seeBlendingSequence) if it does not already exist.default BlendingSequencedefault BlendingSequencenewBlendingSequence(int initialCapacity) Adds a new Blending Sequence.default voidRemoves the Blending Sequence (seeBlendingSequencestatic BlendingSequence.Holderwrap(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 Blending Sequence (seeBlendingSequence)- Returns:
- A wrapper object implementing the
BlendingSequence.Holderinterface.
-
builder
- Returns:
- a
BlendingSequence.Holder.Builderto create Blending Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theBlendingSequence.Holder.Builder.- Returns:
- a
BlendingSequence.Holder.Builderto create Blending Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getBlendingSequence
- Returns:
- the Blending Sequence (see
BlendingSequence)
-
newBlendingSequence
Adds a new Blending Sequence. (seeBlendingSequence)- Parameters:
initialCapacity- the initial capacity for the new Blending Sequence
-
ensureBlendingSequence
Adds a new Blending Sequence (seeBlendingSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Blending Sequence is created.- Returns:
- Either the already existing Blending Sequence (see
BlendingSequence) or a new one with capacityinitialCapacity.
-
ensureBlendingSequence
Adds a new Blending Sequence (seeBlendingSequence) with initial capacity 1 (seeensureBlendingSequence(int)) if it does not already exist.- Returns:
- Either the already existing Blending Sequence (see
BlendingSequence) or a new one with capacity 1.
-
containsBlendingSequence
default boolean containsBlendingSequence()- Returns:
- Whether it contains the Blending Sequence (see
BlendingSequence)
-
removeBlendingSequence
default void removeBlendingSequence()Removes the Blending Sequence (seeBlendingSequence
-