Interface HPGLPenSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
HPGLDocumentSequence.Item
- Enclosing class:
- HPGLPenSequence
A class implementing this interface can hold attributes which contain the DICOM tag "HPGL Pen Sequence" (see
HPGLPenSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault HPGLPenSequenceAdds a new HPGL Pen Sequence (seeHPGLPenSequence) with initial capacity 1 (seeensureHPGLPenSequence(int)) if it does not already exist.default HPGLPenSequenceensureHPGLPenSequence(int initialCapacity) Adds a new HPGL Pen Sequence (seeHPGLPenSequence) if it does not already exist.default HPGLPenSequencedefault HPGLPenSequencenewHPGLPenSequence(int initialCapacity) Adds a new HPGL Pen Sequence.default voidRemoves the HPGL Pen Sequence (seeHPGLPenSequencestatic HPGLPenSequence.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 HPGL Pen Sequence (seeHPGLPenSequence)- Returns:
- A wrapper object implementing the
HPGLPenSequence.Holderinterface.
-
builder
- Returns:
- a
HPGLPenSequence.Holder.Builderto create HPGL Pen Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theHPGLPenSequence.Holder.Builder.- Returns:
- a
HPGLPenSequence.Holder.Builderto create HPGL Pen Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getHPGLPenSequence
- Returns:
- the HPGL Pen Sequence (see
HPGLPenSequence)
-
newHPGLPenSequence
Adds a new HPGL Pen Sequence. (seeHPGLPenSequence)- Parameters:
initialCapacity- the initial capacity for the new HPGL Pen Sequence
-
ensureHPGLPenSequence
Adds a new HPGL Pen Sequence (seeHPGLPenSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new HPGL Pen Sequence is created.- Returns:
- Either the already existing HPGL Pen Sequence (see
HPGLPenSequence) or a new one with capacityinitialCapacity.
-
ensureHPGLPenSequence
Adds a new HPGL Pen Sequence (seeHPGLPenSequence) with initial capacity 1 (seeensureHPGLPenSequence(int)) if it does not already exist.- Returns:
- Either the already existing HPGL Pen Sequence (see
HPGLPenSequence) or a new one with capacity 1.
-
containsHPGLPenSequence
default boolean containsHPGLPenSequence()- Returns:
- Whether it contains the HPGL Pen Sequence (see
HPGLPenSequence)
-
removeHPGLPenSequence
default void removeHPGLPenSequence()Removes the HPGL Pen Sequence (seeHPGLPenSequence
-