ImageGear ART Forms provides 3 classes to support the end user’s interaction and UI for custom marks. You must take one of them as a base class and implement a custom annotator controller in your application, just like you did for the custom class and custom controller. The custom annotator controller is responsible for:
- Interactive mark creation (with pre-drawing)
- Mark resizing
- Representing the custom mark on Annotator’s toolbar
- Creating mark’s property window when requested by Annotator
Base classes are as follows:
- ImGearARTFormsMarkController - This class defines an API which must be implemented by the user. This class does not implement any functionality and is recommended only if the custom mark is not similar to a rectangle or a set of points when created/resized.
- ImGearARTFormsRectangleController - This class implements default resize/creation behavior for rectangular marks. The user will have to override the mark creation code to support the rectangular mark.
- ImGearARTFormsPolyController - This class implements default resize/creation behavior for marks similar to polyline/polygon. The user will have to override the mark creation code and some members related to resizing to support the mark (please refer to the SectorEditController class in ART sample).
The following topics are covered in this section: