brf.j2me.dynaworks.util
Class Point

java.lang.Object
  |
  +--brf.j2me.dynaworks.util.Point

public class Point
extends java.lang.Object

This is a primitive point class.

A point represents a position on the screen and is therefore limited to positive coordinates.

Version:
1.0
Author:
Bernd R. Fix

Field Summary
private  int x
          x-coordinate.
private  int y
          y-coordinate.
 
Constructor Summary
Point(int x, int y)
          constructor from (x,y)
 
Method Summary
 int getX()
          get the x-coordinate of the point.
 int getY()
          get the x-coordinate of the point.
 void setX(int x)
          set the x-coordinate of the point.
 void setY(int y)
          set the y-coordinate of the point.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

x

private int x
x-coordinate.


y

private int y
y-coordinate.

Constructor Detail

Point

public Point(int x,
             int y)
constructor from (x,y)

Parameters:
x - int - x-coordinate of the point.
y - int - y-coordinate of the point.
Method Detail

getX

public int getX()
get the x-coordinate of the point.

Returns:
int - x-coordinate

setX

public void setX(int x)
set the x-coordinate of the point.

Parameters:
x - int - x-coordinate

getY

public int getY()
get the x-coordinate of the point.

Returns:
int - x-coordinate

setY

public void setY(int y)
set the y-coordinate of the point.

Parameters:
y - int - y-coordinate