|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.editor.ISketchToolProxy
public class ISketchToolProxy
Provides access to members that control the main sketch tool.
The SketchTool object is the default sketch tool on the Editor toolbar. This sketch tool has its own context menu with commands such as Direction, Distance, and Parallel. Add your own custom commands or macros to the Sketch Tool context menu using the Customize dialog box.
Use ISketchTool when you want to set and get specific information about the Sketch tool. For example, when creating a custom Sketch tool menu item, you may need to get the Sketch tool’s current location or the edit sketch anchor point. For example, the Parallel command uses the Location property to find the feature on which the sketch tool was rightclicked before the command was selected.
IPoint
,
IEditProperties
,
IEditAttributeProperties
,
IEditSketch
,
Serialized FormField Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
ISketchToolProxy()
|
|
ISketchToolProxy(Object obj)
|
protected |
ISketchToolProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
addPoint(IPoint point,
boolean esri_clone,
boolean allowUndo)
Adds a point to the sketch. |
IPoint |
getAnchor()
The anchor of the sketch. |
double |
getAngleConstraint()
The sketch's angular constraint. |
int |
getConstraint()
The sketch constraint. |
double |
getDistanceConstraint()
The sketch's distance constraint. |
IPoint |
getLocation()
The current location of the mouse. |
boolean |
isStreaming()
Indicates whether stream mode digitizing is enabled. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setAngleConstraint(double val)
The sketch's angular constraint. |
void |
setConstraint(int constraint)
The sketch constraint. |
void |
setDistanceConstraint(double val)
The sketch's distance constraint. |
void |
setIsStreaming(boolean isStreaming)
Indicates whether stream mode digitizing is enabled. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public ISketchToolProxy()
public ISketchToolProxy(Object obj) throws IOException
IOException
protected ISketchToolProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public IPoint getAnchor() throws IOException, AutomationException
getAnchor
in interface ISketchTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPoint getLocation() throws IOException, AutomationException
getLocation
in interface ISketchTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getConstraint() throws IOException, AutomationException
getConstraint
in interface ISketchTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConstraint(int constraint) throws IOException, AutomationException
setConstraint
in interface ISketchTool
constraint
- A com.esri.arcgis.editor.esriSketchConstraint constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getAngleConstraint() throws IOException, AutomationException
getAngleConstraint
in interface ISketchTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAngleConstraint(double val) throws IOException, AutomationException
setAngleConstraint
in interface ISketchTool
val
- The val (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getDistanceConstraint() throws IOException, AutomationException
getDistanceConstraint
in interface ISketchTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDistanceConstraint(double val) throws IOException, AutomationException
setDistanceConstraint
in interface ISketchTool
val
- The val (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isStreaming() throws IOException, AutomationException
isStreaming
in interface ISketchTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIsStreaming(boolean isStreaming) throws IOException, AutomationException
setIsStreaming
in interface ISketchTool
isStreaming
- The isStreaming (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addPoint(IPoint point, boolean esri_clone, boolean allowUndo) throws IOException, AutomationException
addPoint
in interface ISketchTool
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)esri_clone
- The esri_clone (in)allowUndo
- The allowUndo (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |