|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDimensionConstructor
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.
Method Summary | |
---|---|
void |
addFeedbackPoint(IPoint point)
Adds a point to the display feedback. |
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 |
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. |
Method Detail |
---|
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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDimensionType() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCanFinish(IGeometry sketchGeometry) throws IOException, AutomationException
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.void constructDimension(IDimensionFeature feature, IGeometry geometry, IDimensionStyle style) throws IOException, AutomationException
When IDimensionConstructor::CanFinish returns True ConstructDimension is called.
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.void startup(IDimensionEditExtension extension) throws IOException, AutomationException
Startup is called when the constructor is instantiated by the DimensionEditExtension.
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.void shutdown() throws IOException, AutomationException
Shutdown is called when the DimensionEditExtension's destructor is called, typically when ArcMap is shut down.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
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.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.
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.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHasFeedback() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
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 |