ucar.jpeg.jj2000.j2k.codestream
Class PrecCoordInfo

java.lang.Object
  extended by ucar.jpeg.jj2000.j2k.codestream.CoordInfo
      extended by ucar.jpeg.jj2000.j2k.codestream.PrecCoordInfo

public class PrecCoordInfo
extends CoordInfo

This class is used to store the coordinates of precincts.


Field Summary
 int xref
          Horizontal upper left coordinate in the reference grid
 int yref
          Vertical upper left coordinate on the reference grid
 
Fields inherited from class ucar.jpeg.jj2000.j2k.codestream.CoordInfo
h, ulx, uly, w
 
Constructor Summary
PrecCoordInfo()
          Empty Constructor.
PrecCoordInfo(int ulx, int uly, int w, int h, int xref, int yref)
          Constructor.
 
Method Summary
 String toString()
          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 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 - Precinct'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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.