Class MappingOptionTriplet

All Implemented Interfaces:
Triplet, Streamable, StructuredData

public class MappingOptionTriplet extends AbstractTriplet
Specifies the mapping of data object presentation space to object area
  • Field Details

    • POSITION

      public static final byte POSITION
      the data object is placed in the upper left corner, all data must be presented within the object area extents
      See Also:
    • POSITION_AND_TRIM

      public static final byte POSITION_AND_TRIM
      the data object is placed in the upper left corner, all data that falls within the object area extents will be presented but data that falls outside will not be presented
      See Also:
    • SCALE_TO_FIT

      public static final byte SCALE_TO_FIT
      the data object is centred and symmetrically scaled up or down while preserving aspect ratio
      See Also:
    • CENTER_AND_TRIM

      public static final byte CENTER_AND_TRIM
      the data object is centred, all data that falls within the object area extents will be presented but data that falls outside will not be presented
      See Also:
    • IMAGE_POINT_TO_PEL

      public static final byte IMAGE_POINT_TO_PEL
      Migration mapping option: Image point-to-pel.
      See Also:
    • IMAGE_POINT_TO_PEL_DOUBLE_DOT

      public static final byte IMAGE_POINT_TO_PEL_DOUBLE_DOT
      Migration mapping option: Image point-to-pel with double dot.
      See Also:
    • REPLICATE_AND_TRIM

      public static final byte REPLICATE_AND_TRIM
      Migration mapping option: Replicate and trim.
      See Also:
    • SCALE_TO_FILL

      public static final byte SCALE_TO_FILL
      the data object is centred, aspect ratio is not always preserved
      See Also:
    • UP3I_PRINT_DATA

      public static final byte UP3I_PRINT_DATA
      used to map ip3i print data objects
      See Also:
  • Constructor Details

    • MappingOptionTriplet

      public MappingOptionTriplet(byte mapValue)
      Main constructor
      Parameters:
      mapValue - the mapping option to use
  • Method Details

    • getDataLength

      public int getDataLength()
      Returns the data length of this structured field
      Returns:
      the data length of this structured field
    • writeToStream

      public void writeToStream(OutputStream os) throws IOException
      DataStream objects must implement the writeToStream() method to write its data to the given OutputStream
      Parameters:
      os - the outputsteam stream
      Throws:
      IOException - an I/O exception of some sort has occurred.