com.partnersoft.formats.shapefile
Class ShpPoint

java.lang.Object
  extended by com.partnersoft.formats.shapefile.ShpPoint
All Implemented Interfaces:
Immutable, ShpPointShape, ShpShape

public class ShpPoint
extends java.lang.Object
implements ShpPointShape

A two-dimensional ESRI point.

Copyright 2006 Partner Software, Inc.

Version:
$Id: ShpPoint.java 1701 2009-01-13 22:11:48Z paul $
Author:
Paul Reavis

Constructor Summary
ShpPoint(double x, double y)
           
ShpPoint(ShapeByteReader reader)
           
ShpPoint(XyPoint point)
           
 
Method Summary
 ShapeType getType()
          Returns the type for this shape.
 double getX()
           
 double getY()
           
 java.lang.String toString()
           
 XyPoint toXyPoint()
           
 void writeBytes(ShapeByteWriter writer)
          Writes this shape, in binary format, to the given output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShpPoint

public ShpPoint(XyPoint point)

ShpPoint

public ShpPoint(double x,
                double y)

ShpPoint

public ShpPoint(ShapeByteReader reader)
Method Detail

toXyPoint

public XyPoint toXyPoint()
Specified by:
toXyPoint in interface ShpPointShape

getType

public ShapeType getType()
Description copied from interface: ShpShape
Returns the type for this shape.

Specified by:
getType in interface ShpShape

writeBytes

public void writeBytes(ShapeByteWriter writer)
Description copied from interface: ShpShape
Writes this shape, in binary format, to the given output. Does not include the type code.

Specified by:
writeBytes in interface ShpShape

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getX

public double getX()
Specified by:
getX in interface ShpPointShape

getY

public double getY()
Specified by:
getY in interface ShpPointShape