|
|||||||||
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.IDimensionConstructorProxy
public class IDimensionConstructorProxy
Provides access to members that control the dimension feature edit sketch constructor.
Dimension Constructors provide specialized behavior for creating new dimension features. All dimension constructors implement the IDimensionConstructor interface and are registered in the ESRI Dimension Constructors component category.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IDimensionConstructorProxy()
|
|
IDimensionConstructorProxy(Object obj)
|
protected |
IDimensionConstructorProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addFeedbackPoint(IPoint point)
Adds a point to the display feedback. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
constructDimension(IDimensionFeature feature,
IGeometry geometry,
IDimensionStyle style)
Creates the dimension shape for a dimension feature given the geometry constructed in the dimension constructor. |
IDisplayFeedback |
createFeedback()
The display feedback for the constructor. |
int |
getDimensionType()
The type of dimension created with the dimension constructor. |
String |
getName()
Name of the dimension constructor. |
int |
getSketchGeometryType()
The type of geometry used for the edit sketch constructor. |
boolean |
isCanFinish(IGeometry sketchGeometry)
Indicates if the dimension feature can be constructed given the number of points in the edit sketch. |
boolean |
isHasFeedback()
Indicates if the constructor will use a custom feedback. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
shutdown()
The constructor start event. |
void |
startFeedback(IPoint point,
IDimensionStyle style)
Starts the display feedback for the dimension constructor. |
void |
startFeedbackFromShape(IGeometry shape,
IDimensionStyle style)
Starts the display feedback for the dimension constructor from an existing geometry. |
void |
startup(IDimensionEditExtension extension)
The dimension editor extension. |
void |
stopFeedback()
Stops the display feedback. |
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 IDimensionConstructorProxy()
public IDimensionConstructorProxy(Object obj) throws IOException
IOException
protected IDimensionConstructorProxy(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 String getName() throws IOException, AutomationException
Returns the name of the dimension constructor. This is the name listed in the Dimension Constructors control on the Dimensioning toolbar.
getName
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSketchGeometryType() throws IOException, AutomationException
Returns the geometry type of the dimension constructor used for the sketch geometry. Most of the standard dimension constructors use esriGeometryMultipoint.
getSketchGeometryType
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDimensionType() throws IOException, AutomationException
getDimensionType
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanFinish(IGeometry sketchGeometry) throws IOException, AutomationException
isCanFinish
in interface IDimensionConstructor
sketchGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void constructDimension(IDimensionFeature feature, IGeometry geometry, IDimensionStyle style) throws IOException, AutomationException
When IDimensionConstructor::CanFinish returns True ConstructDimension is called.
constructDimension
in interface IDimensionConstructor
feature
- A reference to a com.esri.arcgis.carto.IDimensionFeature (in)geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)style
- A reference to a com.esri.arcgis.carto.IDimensionStyle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startup(IDimensionEditExtension extension) throws IOException, AutomationException
Startup is called when the constructor is instantiated by the DimensionEditExtension.
startup
in interface IDimensionConstructor
extension
- A reference to a com.esri.arcgis.editor.IDimensionEditExtension (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void shutdown() throws IOException, AutomationException
Shutdown is called when the DimensionEditExtension's destructor is called, typically when ArcMap is shut down.
shutdown
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDisplayFeedback createFeedback() throws IOException, AutomationException
When implementing IDimensionConstructor CreateFeedback is where the chosen feedback object should be instantiated and the necessary properties of the feedback object are set. For example, you should set the DimensionType and ReferenceScale, and ReferenceUnits values on the feedback object at this time.
createFeedback
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startFeedback(IPoint point, IDimensionStyle style) throws IOException, AutomationException
StartFeedback will start the display of the feedback object when the first point is added to the edit sketch. All properties required by the feedback object should be specified at this point and the feedback should be started.
startFeedback
in interface IDimensionConstructor
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)style
- A reference to a com.esri.arcgis.carto.IDimensionStyle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addFeedbackPoint(IPoint point) throws IOException, AutomationException
When the first point is added StartFeedbackFromShape is called. For all subsequent points that are added AddFeedbackPoint is called. The point can be used to update the feedback if desired.
addFeedbackPoint
in interface IDimensionConstructor
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 stopFeedback() throws IOException, AutomationException
StopFeedback will stop the display feedback. StopFeedback is automatically called when IDimensionConstructor::CanFinish returns True. At this time you should stop the DimensionFeedback object and dereference it. If desired you can use the IDimensionShape returned from INewDimensionFeedback::Stop as the basis for constructing the dimension feature. ConstructDimension is called immediately follwing StopFeedback.
stopFeedback
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasFeedback() throws IOException, AutomationException
isHasFeedback
in interface IDimensionConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startFeedbackFromShape(IGeometry shape, IDimensionStyle style) throws IOException, AutomationException
StartFeedbackFromShape is called when the first point is added to the edit sketch. The input geometry should be used to add all the points in the sketchGeometry to the DimensionFeedback object.
startFeedbackFromShape
in interface IDimensionConstructor
shape
- A reference to a com.esri.arcgis.geometry.IGeometry (in)style
- A reference to a com.esri.arcgis.carto.IDimensionStyle (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 |