←Select platform

Render Method

Summary

Renders this thumb at the specified center location.

Syntax
C#
VB
Java
Objective-C
C++
Sub Render( _ 
   ByVal renderer As IAnnObjectRenderer, _ 
   ByVal mapper As AnnContainerMapper, _ 
   ByVal location As LeadPointD, _ 
   ByVal operations As AnnFixedStateOperations _ 
)  
-(void) render:(id<LTIAnnObjectRenderer>) render 
        mapper:(LTAnnContainerMapper*)mapper 
      location:(LeadPointD) location 
     operation:(LTAnnFixedStateOperations) operation; 
void render(IAnnObjectRenderer renderer, AnnContainerMapper mapper, LeadPointD location, int annFixedStateOperations); 

Parameters

renderer
The object renderer being invoked. This value must not be null.

mapper
The mapper object to use for converting coordinates. This value must not be null.

location
The center location of the thumb in container coordinates.

operations
The fixed state of the owner object.

Remarks

This method is called by renderer from the IAnnObjectRenderer.RenderThumbs and IAnnObjectRenderer.RenderRotatePointThumbs methods. The framework will call these methods to render the selected and rotation thumbs of an object.

This IAnnThumbStyle perform the following during this method:

  1. Converts the center location into physical coordinates using mapper.PointFromContainerCoordinates and Size into physical coordinates using mapper.SizeFromContainerCoordinates and then creates a rectangle for converted location and size (with its origin at the location).

  2. Calls AddPath passing the rectangle calculated above to allow the implementation class to draw the actual thumb shape

  3. Finally, uses Fill and Stroke to fill and draw the path onto the destination context (stored in renderer.RenderingEngine

Requirements

Target Platforms

Help Version 20.0.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly