com.esri.arcgis.geodatabase
Class Pnt

java.lang.Object
  extended by com.esri.arcgis.geodatabase.Pnt
All Implemented Interfaces:
IPnt, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class Pnt
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IPnt

A 2D point for representing raster dimension and location in pixels.

Remarks

The Pnt object is normally used to define the dimension of a PixelBlock (width and height) or the cell size (x and y).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
Pnt()
          Constructs a Pnt using ArcGIS Engine.
Pnt(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Pnt thePnt = (Pnt) obj;
 
Method Summary
 void convert2Point(IPoint env)
          Set Esri's Point Object from Pnt.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 double getX()
          X coordinate of the point.
 double getY()
          Y coordinate of the point.
 int hashCode()
          the hashcode for this object
 void set2Point(IPoint env)
          Reset from Esri's Point Object.
 void setCoords(double x, double y)
          Set X and Y coordinates of the point.
 void setX(double val)
          X coordinate of the point.
 void setY(double val)
          Y coordinate of the point.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

Pnt

public Pnt()
    throws IOException,
           UnknownHostException
Constructs a Pnt using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

Pnt

public Pnt(Object obj)
    throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Pnt thePnt = (Pnt) obj;

Construct a Pnt using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to Pnt.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getX

public double getX()
            throws IOException,
                   AutomationException
X coordinate of the point.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getX in interface IPnt
Returns:
The val
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setX

public void setX(double val)
          throws IOException,
                 AutomationException
X coordinate of the point.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setX in interface IPnt
Parameters:
val - The val (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getY

public double getY()
            throws IOException,
                   AutomationException
Y coordinate of the point.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getY in interface IPnt
Returns:
The val
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setY

public void setY(double val)
          throws IOException,
                 AutomationException
Y coordinate of the point.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setY in interface IPnt
Parameters:
val - The val (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCoords

public void setCoords(double x,
                      double y)
               throws IOException,
                      AutomationException
Set X and Y coordinates of the point.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setCoords in interface IPnt
Parameters:
x - The x (in)
y - The y (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

set2Point

public void set2Point(IPoint env)
               throws IOException,
                      AutomationException
Reset from Esri's Point Object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
set2Point in interface IPnt
Parameters:
env - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convert2Point

public void convert2Point(IPoint env)
                   throws IOException,
                          AutomationException
Set Esri's Point Object from Pnt.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
convert2Point in interface IPnt
Parameters:
env - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.