jj2000.j2k.image
Class Coord

java.lang.Object
  |
  +--jj2000.j2k.image.Coord

public class Coord
extends java.lang.Object

This class represents 2-D coordinates.


Field Summary
 int x
          The horizontal coordinate
 int y
          The vertical coordinate
 
Constructor Summary
Coord()
          Creates a new coordinate object given with the (0,0) coordinates
Coord(Coord c)
          Creates a new coordinate object given another Coord object i.e.
Coord(int x, int y)
          Creates a new coordinate object given the two coordinates.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of the object coordinates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x
The horizontal coordinate


y

public int y
The vertical coordinate

Constructor Detail

Coord

public Coord()
Creates a new coordinate object given with the (0,0) coordinates


Coord

public Coord(int x,
             int y)
Creates a new coordinate object given the two coordinates.

Parameters:
x - The horizontal coordinate.
y - The vertical coordinate.

Coord

public Coord(Coord c)
Creates a new coordinate object given another Coord object i.e. copy constructor

Parameters:
c - The Coord object to be copied.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object coordinates

Overrides:
toString in class java.lang.Object
Returns:
The vertical and the horizontal coordinates