|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.editor.CurvedAnnoConstructor
public class CurvedAnnoConstructor
An annotation feature constructor for creating curved annotation.
Constructor Summary | |
---|---|
CurvedAnnoConstructor()
Constructs a CurvedAnnoConstructor using ArcGIS Engine. |
|
CurvedAnnoConstructor(Object obj)
Construct a CurvedAnnoConstructor using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
void |
addFeedbackPoint(IPoint point)
Adds a point to the display feedback. |
void |
beforeStoreAnnotation(IAnnotationFeature annotationFeature,
IGeometry sketchGeometry)
Lets the constructor know the annotation is about to be stored. |
IDisplayFeedback |
createFeedback()
The display feedback for the constructor. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getName()
Name of the annotation constructor. |
int |
getSketchGeometryType()
The type of geometry used for the edit sketch constructor. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isCanFinish(IGeometry sketchGeometry)
Indicates if the annotation feature can be constructed given the number of points in the edit sketch. |
void |
onKeyDown(int keyState,
int shift)
Called when a key is pressed. |
void |
onKeyUp(int keyState,
int shift)
Called when a key is pressed. |
void |
shutdown()
The constructor start event. |
void |
startFeedback(IPoint point)
Starts the display feedback for the annotation constructor. |
void |
startup(IEditor pEditor)
The annotation editor extension. |
void |
stopFeedback()
Stops the display feedback. |
void |
updateFeedback()
Updates the display feedback with the current settings. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public CurvedAnnoConstructor() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic CurvedAnnoConstructor(Object obj) throws IOException
obj
to CurvedAnnoConstructor
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
CurvedAnnoConstructor theCurvedAnnoConstructor = (CurvedAnnoConstructor) obj;
Method Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
Returns the name of the annotation constructor. This is the name listed in the Annotation Constructors control on the Annotation toolbar.
getName
in interface IAnnotationConstructor
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 annotation constructor.
getSketchGeometryType
in interface IAnnotationConstructor
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 IAnnotationConstructor
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 startup(IEditor pEditor) throws IOException, AutomationException
Startup is called when the constructor is instantiated by the AnnotationEditExtension. If you are implementing this interface Startup is where you should obtain a reference to IAnnotationEditExtension from the Editor.
startup
in interface IAnnotationConstructor
pEditor
- A reference to a com.esri.arcgis.editor.IEditor (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 AnnotationEditExtension's destructor is called, typically when ArcMap is shut down.
shutdown
in interface IAnnotationConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDisplayFeedback createFeedback() throws IOException, AutomationException
When implementing IAnnotationConstructor CreateFeedback is where the chosen feedback object should be instantiated. This includes both standard feedback objects like MoveFeedback, NewFeedback, RotateFeedback, or custom feedback objects.
createFeedback
in interface IAnnotationConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startFeedback(IPoint point) 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 IAnnotationConstructor
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 addFeedbackPoint(IPoint point) throws IOException, AutomationException
AddFeedbackPoint is called whenever a point is added to the edit sketch. The point can be used to update the feedback if desired.
addFeedbackPoint
in interface IAnnotationConstructor
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 updateFeedback() throws IOException, AutomationException
Use UpdateFeedback when you change the characteristics of the feedback. An example of when you might use this method is when a new point is added to the sketch and the new point sets the angle at which the feedback is displayed.
updateFeedback
in interface IAnnotationConstructor
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 IAnnotationConstructor::CanFinish returns True.
stopFeedback
in interface IAnnotationConstructor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onKeyDown(int keyState, int shift) throws IOException, AutomationException
OnKeyDown may be used to listen for one or more keys being depressed and expose additional functionality. All annotation constructors have a set of keys that they respond to. See the list of hotkeys in the online help. Each constructor implements the 'W' key functionality to derive the text from the first feature under the cursor; this functionality is available to new annotation constructors.
onKeyDown
in interface IAnnotationConstructor
keyState
- The keyState (in)shift
- The shift (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onKeyUp(int keyState, int shift) throws IOException, AutomationException
OnKeyUp may be used to listen for one or more keys being released.
onKeyUp
in interface IAnnotationConstructor
keyState
- The keyState (in)shift
- The shift (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void beforeStoreAnnotation(IAnnotationFeature annotationFeature, IGeometry sketchGeometry) throws IOException, AutomationException
Use BeforeStoreAnnotation to apply changes to the annotation feature being created before it is stored in the Geodatabase. At this time the location of the feature should be updated from its initial position if required. BeforeStoreAnnotation is called automatically when IAnnotationConstructor::CanFinish returns True.
beforeStoreAnnotation
in interface IAnnotationConstructor
annotationFeature
- A reference to a com.esri.arcgis.carto.IAnnotationFeature (in)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 interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 |