baseCode.dataStructure
Class Point

java.lang.Object
  extended bybaseCode.dataStructure.Point
Direct Known Subclasses:
Link

public class Point
extends java.lang.Object

Title:

Description:

Copyright (c) 2004

Institution:: Columbia University

Version:
$Id: Point.java,v 1.4 2004/07/27 03:18:58 pavlidis Exp $
Author:
Paul Pavlidis

Constructor Summary
Point(int i, int j)
           
 
Method Summary
 int[] get()
           
 int getx()
           
 int gety()
           
 void set(int i, int j)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(int i,
             int j)
Parameters:
i -
j -
Method Detail

set

public void set(int i,
                int j)
Parameters:
i -
j -

get

public int[] get()
Returns:
array containing the coordinates x,y.

getx

public int getx()
Returns:
x the x value.

gety

public int gety()
Returns:
y the y value.

toString

public java.lang.String toString()
Returns:
string representation of the point.


Copyright © 2003-2005 Columbia University. All Rights Reserved.