com.WorldLibAndroid
Class Posn

java.lang.Object
  extended by com.WorldLibAndroid.Posn

public class Posn
extends java.lang.Object

To represent a point on the drawing CanvasX

Since:
August 2, 2007
Author:
Viera K. Proulx

Constructor Summary
Posn(float x, float y)
          Constructor
 
Method Summary
 float getX()
          Method to get the variable x.
 float getY()
          Method to get the variable y.
 void setX(float x)
          Method to set the variable x.
 void setY(float y)
          Method to set the variable y.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Posn

public Posn(float x,
            float y)
Constructor

Parameters:
x - coordinate on the drawing canvas.
y - coordinate on the drawing canvas.
Method Detail

getX

public float getX()
Method to get the variable x.

Returns:
x coordinate in the canvas.

getY

public float getY()
Method to get the variable y.

Returns:
y coordinate in the canvas.

setX

public void setX(float x)
Method to set the variable x.

Parameters:
x - coordinate in the canvas.

setY

public void setY(float y)
Method to set the variable y.

Parameters:
y - coordinate in the canvas.