Interface GraphicCoordinatesDataSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
FiducialSequence.Item,GraphicCoordinatesDataSequence.SimpleHolder
- Enclosing class:
- GraphicCoordinatesDataSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Graphic Coordinates Data Sequence" (see
GraphicCoordinatesDataSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault GraphicCoordinatesDataSequenceAdds a new Graphic Coordinates Data Sequence (seeGraphicCoordinatesDataSequence) with initial capacity 1 (seeensureGraphicCoordinatesDataSequence(int)) if it does not already exist.default GraphicCoordinatesDataSequenceensureGraphicCoordinatesDataSequence(int initialCapacity) Adds a new Graphic Coordinates Data Sequence (seeGraphicCoordinatesDataSequence) if it does not already exist.default GraphicCoordinatesDataSequencedefault GraphicCoordinatesDataSequencenewGraphicCoordinatesDataSequence(int initialCapacity) Adds a new Graphic Coordinates Data Sequence.default voidRemoves the Graphic Coordinates Data Sequence (seeGraphicCoordinatesDataSequencewrap(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 Graphic Coordinates Data Sequence (seeGraphicCoordinatesDataSequence)- Returns:
- A wrapper object implementing the
GraphicCoordinatesDataSequence.Holderinterface.
-
builder
- Returns:
- a
GraphicCoordinatesDataSequence.Holder.Builderto create Graphic Coordinates Data Sequence Items with a fluent API.
-
builder
static GraphicCoordinatesDataSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theGraphicCoordinatesDataSequence.Holder.Builder.- Returns:
- a
GraphicCoordinatesDataSequence.Holder.Builderto create Graphic Coordinates Data Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getGraphicCoordinatesDataSequence
- Returns:
- the Graphic Coordinates Data Sequence (see
GraphicCoordinatesDataSequence)
-
newGraphicCoordinatesDataSequence
Adds a new Graphic Coordinates Data Sequence. (seeGraphicCoordinatesDataSequence)- Parameters:
initialCapacity- the initial capacity for the new Graphic Coordinates Data Sequence
-
ensureGraphicCoordinatesDataSequence
Adds a new Graphic Coordinates Data Sequence (seeGraphicCoordinatesDataSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Graphic Coordinates Data Sequence is created.- Returns:
- Either the already existing Graphic Coordinates Data Sequence (see
GraphicCoordinatesDataSequence) or a new one with capacityinitialCapacity.
-
ensureGraphicCoordinatesDataSequence
Adds a new Graphic Coordinates Data Sequence (seeGraphicCoordinatesDataSequence) with initial capacity 1 (seeensureGraphicCoordinatesDataSequence(int)) if it does not already exist.- Returns:
- Either the already existing Graphic Coordinates Data Sequence (see
GraphicCoordinatesDataSequence) or a new one with capacity 1.
-
containsGraphicCoordinatesDataSequence
default boolean containsGraphicCoordinatesDataSequence()- Returns:
- Whether it contains the Graphic Coordinates Data Sequence (see
GraphicCoordinatesDataSequence)
-
removeGraphicCoordinatesDataSequence
default void removeGraphicCoordinatesDataSequence()Removes the Graphic Coordinates Data Sequence (seeGraphicCoordinatesDataSequence
-