Class CoordInfo

java.lang.Object
jj2000.j2k.codestream.CoordInfo
Direct Known Subclasses:
CBlkCoordInfo, PrecCoordInfo

public abstract class CoordInfo extends Object
This class is used to store the coordinates of objects such as code-blocks or precincts. As this is an abstract class, it cannot be used directly but derived classes have been created for code-blocks and packets (CBlkCoordInfo and PrecCoordInfo).
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Object's height
    int
    Horizontal upper left coordinate in the subband
    int
    Vertical upper left coordinate in the subband
    int
    Object's width
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty contructor
    CoordInfo(int ulx, int uly, int w, int h)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns object's information in a String

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • ulx

      public int ulx
      Horizontal upper left coordinate in the subband
    • uly

      public int uly
      Vertical upper left coordinate in the subband
    • w

      public int w
      Object's width
    • h

      public int h
      Object's height
  • Constructor Details

    • CoordInfo

      public CoordInfo(int ulx, int uly, int w, int h)
      Constructor. Creates a CoordInfo object.
      Parameters:
      ulx - The horizontal upper left coordinate in the subband
      uly - The vertical upper left coordinate in the subband
      w - The width
      h - The height
    • CoordInfo

      public CoordInfo()
      Empty contructor
  • Method Details

    • toString

      public String toString()
      Returns object's information in a String
      Overrides:
      toString in class Object
      Returns:
      String with object's information