Class ObjectAreaSizeTriplet

All Implemented Interfaces:
Triplet, Streamable, StructuredData

public class ObjectAreaSizeTriplet extends AbstractTriplet
The Object Area Size triplet is used to specify the extent of an object area in the X and Y directions
  • Constructor Details

    • ObjectAreaSizeTriplet

      public ObjectAreaSizeTriplet(int x, int y, byte type)
      Main constructor
      Parameters:
      x - the object area extent for the X axis
      y - the object area extent for the Y axis
      type - the object area size type
    • ObjectAreaSizeTriplet

      public ObjectAreaSizeTriplet(int x, int y)
      Main constructor
      Parameters:
      x - the object area extent for the X axis
      y - the object area extent for 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.