Class PrecCoordInfo


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

      • 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 Detail

      • 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 Detail

      • toString

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