Class PrecCoordInfo

java.lang.Object
jj2000.j2k.codestream.CoordInfo
jj2000.j2k.codestream.PrecCoordInfo

public class PrecCoordInfo extends CoordInfo
This class is used to store the coordinates of precincts.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Horizontal upper left coordinate in the reference grid
    int
    Vertical upper left coordinate on the reference grid

    Fields inherited from class jj2000.j2k.codestream.CoordInfo

    h, ulx, uly, w
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty Constructor.
    PrecCoordInfo(int ulx, int uly, int w, int h, int xref, int yref)
    Constructor.
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • xref

      public int xref
      Horizontal upper left coordinate in the reference grid
    • yref

      public int yref
      Vertical upper left coordinate on the reference grid
  • Constructor Details

    • PrecCoordInfo

      public PrecCoordInfo(int ulx, int uly, int w, int h, int xref, int yref)
      Constructor. Creates a PrecCoordInfo object.
      Parameters:
      ulx - Horizontal upper left coordinate in the subband
      uly - Vertical upper left coordinate in the subband
      w - Precint's width
      h - Precinct's height
      xref - The horizontal coordinate on the reference grid
      yref - The vertical coordinate on the reference grid
    • PrecCoordInfo

      public PrecCoordInfo()
      Empty Constructor. Creates an empty PrecCoordInfo object.
  • Method Details

    • toString

      public String toString()
      Returns precinct's information in a String
      Overrides:
      toString in class CoordInfo
      Returns:
      String with precinct's information