NVS Shapefile library Version 3.2
NVision Solutions, Inc.

com.nvs.shapefile
Class Point

java.lang.Object
  |
  +--com.nvs.shapefile.Point

public class Point
extends java.lang.Object

A Point holds X and Y coordinates, but no Record. Points are used by Parts and PointSets.

Author:
Zack Watts
NVisionSolutions, Inc.

Constructor Summary
Point()
          Creates a new Point with X and Y equal to zero.
Point(double x, double y)
          Creates a new Point with specified X and Y values.
 
Method Summary
 double getX()
          Retrieves value of X
 double getY()
          Retrieves value of Y
 void setX(double x)
          Sets the X value to that specified.
 void setY(double y)
          Sets the Y value to that specified.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point()
Creates a new Point with X and Y equal to zero.


Point

public Point(double x,
             double y)
Creates a new Point with specified X and Y values.

Parameters:
x - Desired X value as a double
y - Desired Y value as a double
Method Detail

setX

public void setX(double x)
Sets the X value to that specified.

Parameters:
x - Desired X value as a double

setY

public void setY(double y)
Sets the Y value to that specified.

Parameters:
y - Desired Y value as a double

getX

public double getX()
Retrieves value of X

Returns:
Value of X as a double

getY

public double getY()
Retrieves value of Y

Returns:
Value of Y as a double

NVS Shapefile library Version 3.2
NVision Solutions, Inc.