de.fhg.igd.earth.model.input.shapefile
Class ESRIPoint

java.lang.Object
  extended byde.fhg.igd.earth.model.input.shapefile.ESRIPoint

public class ESRIPoint
extends Object


Field Summary
(package private) static NumberFormat format
          A formatting instance for string conversion.
 double x
          The X coordinate.
 double y
          The Y coordinate.
 
Constructor Summary
ESRIPoint()
          Null constructor.
ESRIPoint(byte[] b, int off)
          Constructs a point from the given data buffer.
ESRIPoint(double _x, double _y)
          Initializes a point with the given coordinates.
 
Method Summary
 boolean equals(Object obj)
          Determines equality of this instance with any other instance.
 double getX()
          Returns the X coordinate of this point.
 double getY()
          Returns the Y coordinate of this point.
 String toString()
          Converts this point to an appropriate string representation.
 int write(byte[] b, int off)
          Writes this point to the given buffer at the given offset.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

format

static NumberFormat format
A formatting instance for string conversion.


x

public double x
The X coordinate.


y

public double y
The Y coordinate.

Constructor Detail

ESRIPoint

public ESRIPoint()
Null constructor.


ESRIPoint

public ESRIPoint(double _x,
                 double _y)
Initializes a point with the given coordinates.

Parameters:
_x - the x coordinate
_y - the y coordinate

ESRIPoint

public ESRIPoint(byte[] b,
                 int off)
Constructs a point from the given data buffer.

Parameters:
b - the data buffer
off - the offset into the buffer
Method Detail

getX

public double getX()
Returns the X coordinate of this point.

Returns:
the x coordinate

getY

public double getY()
Returns the Y coordinate of this point.

Returns:
the y coordinate

toString

public String toString()
Converts this point to an appropriate string representation.

Returns:
a string representing this point

write

public int write(byte[] b,
                 int off)
Writes this point to the given buffer at the given offset.

Parameters:
b - the data buffer
off - the offset into the buffer
Returns:
then number of bytes written

equals

public boolean equals(Object obj)
Determines equality of this instance with any other instance.

Parameters:
obj - another instance
Returns:
true if equal, false otherwise


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.