Interface CompoundGraphicSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
GraphicAnnotationSequence.Item
- Enclosing class:
- CompoundGraphicSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Compound Graphic Sequence" (see
CompoundGraphicSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault CompoundGraphicSequenceAdds a new Compound Graphic Sequence (seeCompoundGraphicSequence) with initial capacity 1 (seeensureCompoundGraphicSequence(int)) if it does not already exist.default CompoundGraphicSequenceensureCompoundGraphicSequence(int initialCapacity) Adds a new Compound Graphic Sequence (seeCompoundGraphicSequence) if it does not already exist.default CompoundGraphicSequencedefault CompoundGraphicSequencenewCompoundGraphicSequence(int initialCapacity) Adds a new Compound Graphic Sequence.default voidRemoves the Compound Graphic Sequence (seeCompoundGraphicSequencewrap(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 Compound Graphic Sequence (seeCompoundGraphicSequence)- Returns:
- A wrapper object implementing the
CompoundGraphicSequence.Holderinterface.
-
builder
- Returns:
- a
CompoundGraphicSequence.Holder.Builderto create Compound Graphic Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theCompoundGraphicSequence.Holder.Builder.- Returns:
- a
CompoundGraphicSequence.Holder.Builderto create Compound Graphic Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getCompoundGraphicSequence
- Returns:
- the Compound Graphic Sequence (see
CompoundGraphicSequence)
-
newCompoundGraphicSequence
Adds a new Compound Graphic Sequence. (seeCompoundGraphicSequence)- Parameters:
initialCapacity- the initial capacity for the new Compound Graphic Sequence
-
ensureCompoundGraphicSequence
Adds a new Compound Graphic Sequence (seeCompoundGraphicSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Compound Graphic Sequence is created.- Returns:
- Either the already existing Compound Graphic Sequence (see
CompoundGraphicSequence) or a new one with capacityinitialCapacity.
-
ensureCompoundGraphicSequence
Adds a new Compound Graphic Sequence (seeCompoundGraphicSequence) with initial capacity 1 (seeensureCompoundGraphicSequence(int)) if it does not already exist.- Returns:
- Either the already existing Compound Graphic Sequence (see
CompoundGraphicSequence) or a new one with capacity 1.
-
containsCompoundGraphicSequence
default boolean containsCompoundGraphicSequence()- Returns:
- Whether it contains the Compound Graphic Sequence (see
CompoundGraphicSequence)
-
removeCompoundGraphicSequence
default void removeCompoundGraphicSequence()Removes the Compound Graphic Sequence (seeCompoundGraphicSequence
-