Interface GraphicAnnotationSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
GraphicAnnotationModule
- All Known Implementing Classes:
AdvancedBlendingPresentationStateIOD,BlendingSoftcopyPresentationStateIOD,ColorSoftcopyPresentationStateIOD,GraphicAnnotationSequence.SimpleHolder,GrayscaleSoftcopyPresentationStateIOD,PlanarMPRVolumetricPresentationStateIOD,PseudoColorSoftcopyPresentationStateIOD,VolumeRenderingVolumetricPresentationStateIOD,XAXRFGrayscaleSoftcopyPresentationStateIOD
- Enclosing class:
- GraphicAnnotationSequence
public static interface GraphicAnnotationSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Graphic Annotation Sequence" (seeGraphicAnnotationSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGraphicAnnotationSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static GraphicAnnotationSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Graphic Annotation Sequence (seeGraphicAnnotationSequence)- Returns:
- a wrapper object implementing the
GraphicAnnotationSequence.Holderinterface.
-
builder
static GraphicAnnotationSequence.Holder.Builder builder()
- Returns:
- a
GraphicAnnotationSequence.Holder.Builderto create Graphic Annotation Sequence Items with a fluent API.
-
builder
static GraphicAnnotationSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theGraphicAnnotationSequence.Holder.Builder.- Returns:
- a
GraphicAnnotationSequence.Holder.Builderto create Graphic Annotation Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getGraphicAnnotationSequence
default GraphicAnnotationSequence getGraphicAnnotationSequence()
- Returns:
- the Graphic Annotation Sequence (see
GraphicAnnotationSequence)
-
newGraphicAnnotationSequence
default GraphicAnnotationSequence newGraphicAnnotationSequence(int initialCapacity)
Adds a new Graphic Annotation Sequence. (seeGraphicAnnotationSequence)- Parameters:
initialCapacity- the initial capacity for the new Graphic Annotation Sequence- Returns:
- the newly created GraphicAnnotationSequence.
-
ensureGraphicAnnotationSequence
default GraphicAnnotationSequence ensureGraphicAnnotationSequence(int initialCapacity)
Adds a new Graphic Annotation Sequence (seeGraphicAnnotationSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Graphic Annotation Sequence is created.- Returns:
- either the already existing Graphic Annotation Sequence (see
GraphicAnnotationSequence) or a new one with capacityinitialCapacity.
-
ensureGraphicAnnotationSequence
default GraphicAnnotationSequence ensureGraphicAnnotationSequence()
Adds a new Graphic Annotation Sequence (seeGraphicAnnotationSequence) with initial capacity 1 (seeensureGraphicAnnotationSequence(int)) if it does not already exist.- Returns:
- either the already existing Graphic Annotation Sequence (see
GraphicAnnotationSequence) or a new one with capacity 1.
-
containsGraphicAnnotationSequence
default boolean containsGraphicAnnotationSequence()
- Returns:
- whether it contains the Graphic Annotation Sequence (see
GraphicAnnotationSequence)
-
removeGraphicAnnotationSequence
default void removeGraphicAnnotationSequence()
Removes the Graphic Annotation Sequence (seeGraphicAnnotationSequence
-
-