Interface HPGLPenSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
HPGLDocumentSequence.Item
Enclosing class:
HPGLPenSequence

public static interface HPGLPenSequence.Holder extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "HPGL Pen Sequence" (see HPGLPenSequence)
  • Method Details

    • wrap

      static HPGLPenSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - An attributes object containing the HPGL Pen Sequence (see HPGLPenSequence)
      Returns:
      A wrapper object implementing the HPGLPenSequence.Holder interface.
    • getHPGLPenSequence

      default HPGLPenSequence getHPGLPenSequence()
      Returns:
      the HPGL Pen Sequence (see HPGLPenSequence)
    • newHPGLPenSequence

      default HPGLPenSequence newHPGLPenSequence(int initialCapacity)
      Adds a new HPGL Pen Sequence. (see HPGLPenSequence)
      Parameters:
      initialCapacity - the initial capacity for the new HPGL Pen Sequence
    • ensureHPGLPenSequence

      default HPGLPenSequence ensureHPGLPenSequence(int initialCapacity)
      Adds a new HPGL Pen Sequence (see HPGLPenSequence) if it does not already exist. (see Attributes.ensureSequence(int, int)
      Parameters:
      initialCapacity - The initial capacity (see ArrayList(int)) if a new HPGL Pen Sequence is created.
      Returns:
      Either the already existing HPGL Pen Sequence (see HPGLPenSequence) or a new one with capacity initialCapacity.
    • ensureHPGLPenSequence

      default HPGLPenSequence ensureHPGLPenSequence()
      Adds a new HPGL Pen Sequence (see HPGLPenSequence) with initial capacity 1 (see ensureHPGLPenSequence(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 (see HPGLPenSequence