Class MeasurementUnitsTriplet

All Implemented Interfaces:
Triplet, Streamable, StructuredData

public class MeasurementUnitsTriplet extends AbstractTriplet
The Measurement Units triplet is used to specify the units of measure for a presentation space
  • Constructor Details

    • MeasurementUnitsTriplet

      public MeasurementUnitsTriplet(int xRes, int yRes)
      Main constructor
      Parameters:
      xRes - units per base on the x-axis
      yRes - units per base on the y-axis
  • 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.