Interface LineStyleSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
CompoundGraphicSequence.Item,GraphicObjectSequence.Item,LineStyleSequence.SimpleHolder
- Enclosing class:
- LineStyleSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Line Style Sequence" (see
LineStyleSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault LineStyleSequenceAdds a new Line Style Sequence (seeLineStyleSequence) with initial capacity 1 (seeensureLineStyleSequence(int)) if it does not already exist.default LineStyleSequenceensureLineStyleSequence(int initialCapacity) Adds a new Line Style Sequence (seeLineStyleSequence) if it does not already exist.default LineStyleSequencedefault LineStyleSequencenewLineStyleSequence(int initialCapacity) Adds a new Line Style Sequence.default voidRemoves the Line Style Sequence (seeLineStyleSequencestatic LineStyleSequence.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 Line Style Sequence (seeLineStyleSequence)- Returns:
- A wrapper object implementing the
LineStyleSequence.Holderinterface.
-
builder
- Returns:
- a
LineStyleSequence.Holder.Builderto create Line Style Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theLineStyleSequence.Holder.Builder.- Returns:
- a
LineStyleSequence.Holder.Builderto create Line Style Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getLineStyleSequence
- Returns:
- the Line Style Sequence (see
LineStyleSequence)
-
newLineStyleSequence
Adds a new Line Style Sequence. (seeLineStyleSequence)- Parameters:
initialCapacity- the initial capacity for the new Line Style Sequence
-
ensureLineStyleSequence
Adds a new Line Style Sequence (seeLineStyleSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Line Style Sequence is created.- Returns:
- Either the already existing Line Style Sequence (see
LineStyleSequence) or a new one with capacityinitialCapacity.
-
ensureLineStyleSequence
Adds a new Line Style Sequence (seeLineStyleSequence) with initial capacity 1 (seeensureLineStyleSequence(int)) if it does not already exist.- Returns:
- Either the already existing Line Style Sequence (see
LineStyleSequence) or a new one with capacity 1.
-
containsLineStyleSequence
default boolean containsLineStyleSequence()- Returns:
- Whether it contains the Line Style Sequence (see
LineStyleSequence)
-
removeLineStyleSequence
default void removeLineStyleSequence()Removes the Line Style Sequence (seeLineStyleSequence
-