Interface FieldOfViewSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- Enclosing class:
- FieldOfViewSequence
public static interface FieldOfViewSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Field of View Sequence" (seeFieldOfViewSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFieldOfViewSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static FieldOfViewSequence.Holder.Builderbuilder()static FieldOfViewSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsFieldOfViewSequence()default FieldOfViewSequenceensureFieldOfViewSequence()Adds a new Field of View Sequence (seeFieldOfViewSequence) with initial capacity 1 (seeensureFieldOfViewSequence(int)) if it does not already exist.default FieldOfViewSequenceensureFieldOfViewSequence(int initialCapacity)Adds a new Field of View Sequence (seeFieldOfViewSequence) if it does not already exist.default FieldOfViewSequencegetFieldOfViewSequence()default FieldOfViewSequencenewFieldOfViewSequence(int initialCapacity)Adds a new Field of View Sequence.default voidremoveFieldOfViewSequence()Removes the Field of View Sequence (seeFieldOfViewSequencestatic FieldOfViewSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static FieldOfViewSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Field of View Sequence (seeFieldOfViewSequence)- Returns:
- a wrapper object implementing the
FieldOfViewSequence.Holderinterface.
-
builder
static FieldOfViewSequence.Holder.Builder builder()
- Returns:
- a
FieldOfViewSequence.Holder.Builderto create Field of View Sequence Items with a fluent API.
-
builder
static FieldOfViewSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theFieldOfViewSequence.Holder.Builder.- Returns:
- a
FieldOfViewSequence.Holder.Builderto create Field of View Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getFieldOfViewSequence
default FieldOfViewSequence getFieldOfViewSequence()
- Returns:
- the Field of View Sequence (see
FieldOfViewSequence)
-
newFieldOfViewSequence
default FieldOfViewSequence newFieldOfViewSequence(int initialCapacity)
Adds a new Field of View Sequence. (seeFieldOfViewSequence)- Parameters:
initialCapacity- the initial capacity for the new Field of View Sequence- Returns:
- the newly created FieldOfViewSequence.
-
ensureFieldOfViewSequence
default FieldOfViewSequence ensureFieldOfViewSequence(int initialCapacity)
Adds a new Field of View Sequence (seeFieldOfViewSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Field of View Sequence is created.- Returns:
- either the already existing Field of View Sequence (see
FieldOfViewSequence) or a new one with capacityinitialCapacity.
-
ensureFieldOfViewSequence
default FieldOfViewSequence ensureFieldOfViewSequence()
Adds a new Field of View Sequence (seeFieldOfViewSequence) with initial capacity 1 (seeensureFieldOfViewSequence(int)) if it does not already exist.- Returns:
- either the already existing Field of View Sequence (see
FieldOfViewSequence) or a new one with capacity 1.
-
containsFieldOfViewSequence
default boolean containsFieldOfViewSequence()
- Returns:
- whether it contains the Field of View Sequence (see
FieldOfViewSequence)
-
removeFieldOfViewSequence
default void removeFieldOfViewSequence()
Removes the Field of View Sequence (seeFieldOfViewSequence
-
-