|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISketchTool
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
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
IPoint getAnchor() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPoint getLocation() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getConstraint() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setConstraint(int constraint) throws IOException, AutomationException
constraint
- A com.esri.arcgis.editor.esriSketchConstraint constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getAngleConstraint() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAngleConstraint(double val) throws IOException, AutomationException
val
- The val (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getDistanceConstraint() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDistanceConstraint(double val) throws IOException, AutomationException
val
- The val (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isStreaming() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsStreaming(boolean isStreaming) throws IOException, AutomationException
isStreaming
- The isStreaming (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addPoint(IPoint point, boolean esri_clone, boolean allowUndo) throws IOException, AutomationException
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 |