Interface OverlayPixelDataSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
OverlayPixelDataSequence.SimpleHolder
- Enclosing class:
- OverlayPixelDataSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Overlay Pixel Data Sequence" (see
OverlayPixelDataSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault OverlayPixelDataSequenceAdds a new Overlay Pixel Data Sequence (seeOverlayPixelDataSequence) with initial capacity 1 (seeensureOverlayPixelDataSequence(int)) if it does not already exist.default OverlayPixelDataSequenceensureOverlayPixelDataSequence(int initialCapacity) Adds a new Overlay Pixel Data Sequence (seeOverlayPixelDataSequence) if it does not already exist.default OverlayPixelDataSequencedefault OverlayPixelDataSequencenewOverlayPixelDataSequence(int initialCapacity) Adds a new Overlay Pixel Data Sequence.default voidRemoves the Overlay Pixel Data Sequence (seeOverlayPixelDataSequencewrap(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 Overlay Pixel Data Sequence (seeOverlayPixelDataSequence)- Returns:
- A wrapper object implementing the
OverlayPixelDataSequence.Holderinterface.
-
builder
- Returns:
- a
OverlayPixelDataSequence.Holder.Builderto create Overlay Pixel Data Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theOverlayPixelDataSequence.Holder.Builder.- Returns:
- a
OverlayPixelDataSequence.Holder.Builderto create Overlay Pixel Data Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getOverlayPixelDataSequence
- Returns:
- the Overlay Pixel Data Sequence (see
OverlayPixelDataSequence)
-
newOverlayPixelDataSequence
Adds a new Overlay Pixel Data Sequence. (seeOverlayPixelDataSequence)- Parameters:
initialCapacity- the initial capacity for the new Overlay Pixel Data Sequence
-
ensureOverlayPixelDataSequence
Adds a new Overlay Pixel Data Sequence (seeOverlayPixelDataSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Overlay Pixel Data Sequence is created.- Returns:
- Either the already existing Overlay Pixel Data Sequence (see
OverlayPixelDataSequence) or a new one with capacityinitialCapacity.
-
ensureOverlayPixelDataSequence
Adds a new Overlay Pixel Data Sequence (seeOverlayPixelDataSequence) with initial capacity 1 (seeensureOverlayPixelDataSequence(int)) if it does not already exist.- Returns:
- Either the already existing Overlay Pixel Data Sequence (see
OverlayPixelDataSequence) or a new one with capacity 1.
-
containsOverlayPixelDataSequence
default boolean containsOverlayPixelDataSequence()- Returns:
- Whether it contains the Overlay Pixel Data Sequence (see
OverlayPixelDataSequence)
-
removeOverlayPixelDataSequence
default void removeOverlayPixelDataSequence()Removes the Overlay Pixel Data Sequence (seeOverlayPixelDataSequence
-