Class HorizontalAlignment

All Implemented Interfaces:
AttributesWrapper, DataElementWrapper, BytesDataElementWrapper, CodeStringWrapper, StringDataElementWrapper

public class HorizontalAlignment extends AbstractDataElementWrapper implements CodeStringWrapper
Name: Horizontal Alignment
Keyword: HorizontalAlignment
Tag: (0070,0242)
Value Representation: CS
Value Multiplicity: 1
  • Described in the contexts: as follows:
    Attribute Name: Horizontal Alignment
    Type: 1C
    Attribute Description:

    Specifies the horizontal position of the text relative to the vertical edges of the bounding box. Horizontal Alignment shall override the Bounding Box Text Horizontal Justification (0070,0012) of the Text Object Sequence (0070,0008) Item. See DICOM Standard Part 3 - Section C.10.5.1.3.12.1

    Enumerated Values:

    LEFT
    CENTER
    RIGHT

    Required if Bounding Box Top Left Hand Corner (0070,0010) is present.


  • Field Details

  • Constructor Details

    • HorizontalAlignment

      public HorizontalAlignment(org.dcm4che3.data.Attributes attributes)
      Creates a new Horizontal Alignment object which wraps the provided attributes.
      Parameters:
      attributes - The Attributes object to be wrapped.
    • HorizontalAlignment

      public HorizontalAlignment()
      Creates a new Horizontal Alignment object which wraps a new and empty Attributes object.
  • Method Details

    • copy

      public HorizontalAlignment copy()
      Returns a new Horizontal Alignment which wraps a copy of the Attributes wrapped in this Horizontal Alignment. (see Attributes(Attributes)
      Returns:
      a new Horizontal Alignment which wraps a copy of the Attributes wrapped in this Horizontal Alignment.
    • getTag

      public int getTag()
      Specified by:
      getTag in interface DataElementWrapper
      Returns:
      The DICOM Tag of the wrapped DICOM attributes.