com.esri.arcgis.display
Class AnchorPoint

java.lang.Object
  extended by com.esri.arcgis.display.AnchorPoint
All Implemented Interfaces:
IAnchorPoint, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class AnchorPoint
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IAnchorPoint

COM Class 'AnchorPoint'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriDisplay.olb'

Description 'Anchor point class for rubberbanding objects.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.display.IAnchorPoint
IID, IID71fc8720_0164_11d2_84a4_0000f875b9c6, xxDummy
 
Constructor Summary
AnchorPoint()
          Constructs a AnchorPoint using ArcGIS Engine.
AnchorPoint(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
AnchorPoint theAnchorPoint = (AnchorPoint) obj;
 
Method Summary
 void draw(IDisplay display)
          Draw the anchor.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 int getCursor()
          Cursor displayed when mouse is over anchor.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IPoint getPoint()
          Location of anchor point.
 ISymbol getSymbol()
          Anchor point symbol.
 int hashCode()
          the hashcode for this object
 boolean hitTest(IPoint point, double tol)
          Check if mouse is over anchor.
 void moveTo(IPoint pPoint, IDisplay display)
          Move the anchor.
 void release()
          Release a AnchorPoint.
 void setPoint(IPoint point)
          Location of anchor point.
 void setSymbolByRef(ISymbol symbol)
          Anchor point symbol.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorPoint

public AnchorPoint()
            throws java.io.IOException,
                   java.net.UnknownHostException
Constructs a AnchorPoint using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

AnchorPoint

public AnchorPoint(java.lang.Object obj)
            throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
AnchorPoint theAnchorPoint = (AnchorPoint) obj;

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

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

getClsid

public static java.lang.String getClsid()
getClsid.


equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a AnchorPoint.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setPoint

public void setPoint(IPoint point)
              throws java.io.IOException,
                     AutomationException
Location of anchor point.

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

getPoint

public IPoint getPoint()
                throws java.io.IOException,
                       AutomationException
Location of anchor point.

Specified by:
getPoint in interface IAnchorPoint
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSymbolByRef

public void setSymbolByRef(ISymbol symbol)
                    throws java.io.IOException,
                           AutomationException
Anchor point symbol.

Specified by:
setSymbolByRef in interface IAnchorPoint
Parameters:
symbol - A reference to a com.esri.arcgis.display.ISymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSymbol

public ISymbol getSymbol()
                  throws java.io.IOException,
                         AutomationException
Anchor point symbol.

Specified by:
getSymbol in interface IAnchorPoint
Returns:
A reference to a com.esri.arcgis.display.ISymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCursor

public int getCursor()
              throws java.io.IOException,
                     AutomationException
Cursor displayed when mouse is over anchor.

Specified by:
getCursor in interface IAnchorPoint
Returns:
The cursor (A COM typedef)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hitTest

public boolean hitTest(IPoint point,
                       double tol)
                throws java.io.IOException,
                       AutomationException
Check if mouse is over anchor.

Specified by:
hitTest in interface IAnchorPoint
Parameters:
point - A reference to a com.esri.arcgis.geometry.IPoint (in)
tol - The tol (in)
Returns:
The hit
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

draw

public void draw(IDisplay display)
          throws java.io.IOException,
                 AutomationException
Draw the anchor.

Specified by:
draw in interface IAnchorPoint
Parameters:
display - A reference to a com.esri.arcgis.display.IDisplay (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

moveTo

public void moveTo(IPoint pPoint,
                   IDisplay display)
            throws java.io.IOException,
                   AutomationException
Move the anchor.

Specified by:
moveTo in interface IAnchorPoint
Parameters:
pPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
display - A reference to a com.esri.arcgis.display.IDisplay (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.