com.esri.sde.sdk.client
Class SDEPoint

java.lang.Object
  extended by com.esri.sde.sdk.client.SDEPoint

public class SDEPoint
extends java.lang.Object

Represents the read-only SDE point that can be returned from or used as an argument to SeShape methods.


Constructor Summary
SDEPoint(double x, double y)
          Constructs a point with x,y world coordinates.
SDEPoint(double x, double y, double z)
          Constructs a point with x, y, z world coordinates.
SDEPoint(double x, double y, double z, double m)
          Constructs a point with x,y,z world coordinates and measure m.
 
Method Summary
 double getM()
          Returns the measure value.
 double getX()
          Returns the X coordinate value.
 double getY()
          Returns the Y coordinate value.
 double getZ()
          Returns the Z coordinate value.
 boolean is3D()
          Returns TRUE if the point has a coordinate in the third dimension.
 boolean isMeasured()
          Returns TRUE if the point has a valid measure value.
 void setM(double m)
          Sets the measure value of the point.
 void setX(double x)
          Sets the value of the x coordinate.
 void setY(double y)
          Sets the value of the y coordinate.
 void setZ(double z)
          Sets the value of the z coordinate.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDEPoint

public SDEPoint(double x,
                double y)
Constructs a point with x,y world coordinates.


SDEPoint

public SDEPoint(double x,
                double y,
                double z)
Constructs a point with x, y, z world coordinates.


SDEPoint

public SDEPoint(double x,
                double y,
                double z,
                double m)
Constructs a point with x,y,z world coordinates and measure m.

Method Detail

is3D

public boolean is3D()
Returns TRUE if the point has a coordinate in the third dimension.


isMeasured

public boolean isMeasured()
Returns TRUE if the point has a valid measure value.


getX

public double getX()
Returns the X coordinate value.


getY

public double getY()
Returns the Y coordinate value.


getZ

public double getZ()
            throws SeException
Returns the Z coordinate value.

Throws:
SeException - SE_INVALID_GEOMETRY_TYPE if the point is not 3D.

getM

public double getM()
            throws SeException
Returns the measure value.

Throws:
SeException - SE_INVALID_GEOMETRY_TYPE if the point does not have a measure.

setX

public void setX(double x)
Sets the value of the x coordinate.


setY

public void setY(double y)
Sets the value of the y coordinate.


setZ

public void setZ(double z)
Sets the value of the z coordinate.


setM

public void setM(double m)
Sets the measure value of the point.