|
|||||||||
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.IEditSketchProxy com.esri.arcgis.editor.IEditSketch2Proxy
public class IEditSketch2Proxy
Provides access to members that access and manipulate the edit sketch.
The IEditSketch2 interface is on the Editor CoClass.
IEditSketch2 extends the functionality of the edit sketch by adding support for making the sketch z-aware and for setting Z values on a vertex as well as managing the current EditSketchExtension. IEditSketch2 also has three functions that fire event notifications when vertices are added, modified, or deleted. For example, whenever a vertex is deleted from an edit sketch, VertexDeleted should be called so that any clients listening for this event can respond.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IEditSketch2Proxy()
|
|
IEditSketch2Proxy(Object obj)
|
protected |
IEditSketch2Proxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
double |
getCurrentZ()
Current Z value for the edit sketch. |
IEditSketchExtension |
getEditSketchExtension()
The current edit sketch extension. |
boolean |
isMAware()
Indicates if the edit sketch geometry will contain Ms. |
boolean |
isPartComplete()
Indicates whether FinishPart has been called on the edit sketch. |
boolean |
isZAware()
Indicates if the edit sketch geometry will contain Zs. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setCurrentZ(double z)
Current Z value for the edit sketch. |
void |
setEditSketchExtensionByRef(IEditSketchExtension extension)
The current edit sketch extension. |
void |
setMAware(boolean aware)
Indicates if the edit sketch geometry will contain Ms. |
void |
setZAware(boolean aware)
Indicates if the edit sketch geometry will contain Zs. |
void |
vertexAdded(IPoint point)
Call to notify listeners that a sketch vertex has been added. |
void |
vertexDeleted(IPoint point)
Call to notify listeners that a sketch vertex has been deleted. |
void |
vertexMoved(IPoint point)
Call to notify listeners that a sketch vertex has been moved. |
Methods inherited from class com.esri.arcgis.editor.IEditSketchProxy |
---|
addPoint, finishSketch, finishSketchPart, getGeometry, getGeometryType, getLastPoint, getPart, getSegment, getVertex, modifySketch, refreshSketch, setGeometryByRef, setGeometryType |
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 |
Methods inherited from interface com.esri.arcgis.editor.IEditSketch |
---|
addPoint, finishSketch, finishSketchPart, getGeometry, getGeometryType, getLastPoint, getPart, getSegment, getVertex, modifySketch, refreshSketch, setGeometryByRef, setGeometryType |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IEditSketch2Proxy()
public IEditSketch2Proxy(Object obj) throws IOException
IOException
protected IEditSketch2Proxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class IEditSketchProxy
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class IEditSketchProxy
IOException
public boolean isZAware() throws IOException, AutomationException
If the EditSketch geometry contains elevation (z) values, the ZAware property will return a boolean value of True.
To view the z values for the edit sketch right click over a sketch segment and display the edit sketch properties dialog. If the sketch is ZAware, an additional column will appear next to the y column showing the z values.
isZAware
in interface IEditSketch2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setZAware(boolean aware) throws IOException, AutomationException
setZAware
in interface IEditSketch2
aware
- The aware (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getCurrentZ() throws IOException, AutomationException
getCurrentZ
in interface IEditSketch2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentZ(double z) throws IOException, AutomationException
setCurrentZ
in interface IEditSketch2
z
- The z (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEditSketchExtensionByRef(IEditSketchExtension extension) throws IOException, AutomationException
setEditSketchExtensionByRef
in interface IEditSketch2
extension
- A reference to a com.esri.arcgis.editor.IEditSketchExtension (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEditSketchExtension getEditSketchExtension() throws IOException, AutomationException
Returns the current edit sketch extension. Dimensions and Geodatabase annotation features utilize edit sketch extensions when creating and modifying their geometry.
getEditSketchExtension
in interface IEditSketch2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void vertexAdded(IPoint point) throws IOException, AutomationException
When IEditSketch2::VertexAdded is called, all clients listening to IEditEvents2::OnVertexAdded are notified. This may be used to ensure the maximum number of points in a particular sketch is not exceeded.
vertexAdded
in interface IEditSketch2
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void vertexDeleted(IPoint point) throws IOException, AutomationException
When IEditSketch2::VertexDeleted is called, all clients listening to IEditEvents2::OnVertexDeleted are notified. This may be used to ensure the minimum number of points in a particular sketch is not exceeded.
vertexDeleted
in interface IEditSketch2
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void vertexMoved(IPoint point) throws IOException, AutomationException
When IEditSketch2::VertexMoved is called, all clients listening to IEditEvents2::OnVertexMoved are notified.
vertexMoved
in interface IEditSketch2
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isMAware() throws IOException, AutomationException
If the EditSketch geometry contains measures (Ms), the MAware property will return a boolean value of True.
To view the m values for the edit sketch right click over a sketch segment and display the properties dialog. If the sketch is MAware, an additional column will appear to the right showing the m values.
If the edit sketch is m-aware, all newly inserted vertices will have a value of NaN. Inserting an m-aware sketch into a feature that is not m-aware will return an error.
isMAware
in interface IEditSketch2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMAware(boolean aware) throws IOException, AutomationException
setMAware
in interface IEditSketch2
aware
- The aware (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isPartComplete() throws IOException, AutomationException
Use this property to determine when the current part of the sketch is finished.
isPartComplete
in interface IEditSketch2
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 |