LEADTOOLS JavaScript (Leadtools.Annotations.Rendering)

AnnSvgThumbStyle Object

Show in webframe
Members 
Base class for all SVG renderers thumb styles.
Syntax
function Leadtools.Annotations.Rendering.AnnSvgThumbStyle() 
Remarks

AnnSvgThumbStyle is the default thumb style and renderer for the annotation objects when used with AnnSvgRenderingEngine. This is an abstract class that will implement most common operations, while actual rendering of the object is implemented in the derived class for the objects.

LEADTOOLS ships with the following thumb style implementations:

AnnSvgObjectRenderer is the class responsible for rendering annotation objects, as well as rendering the objects themselves, the object renderer is responsible for rendering the thumbs used when the object is in a selected state.

The framework will call AnnSvgObjectRenderer.RenderThumbs and AnnSvgObjectRenderer.RenderRotatePointThumbs to render the selection and rotation thumbs at a specified location. These method will then call the AnnSvgThumbStyle.Render of its AnnObjectRenderer.LocationsThumbStyle, AnnObjectRenderer.RotateCenterThumbStyle and AnnObjectRenderer.RotateGripperThumbStyle objects to render the actual thumbs.

The annotations thumb style contains the following members:

Member Description
Size

The size of the thumb in container units.

Fill

The style to use for filling the thumb.

Stroke

The style to use for drawing the thumb.

Render

Called by the framework to render a thumb at a specified location.

HitTest

Called by the framework to check if a test point is on top of the thumb if rendered at a specified location.

When implementing a user-defined thumb style, one of the tasks required is to render the thumbs of an annotation object. You can derive your thumb style from this class and use its helper methods. For more information, refer to Implementing User-Defined Thumb Styles With LEADTOOLS Annotations.

See Also

Reference

AnnSvgThumbStyle Members
Leadtools.Annotations.Rendering Namespace
Programming with LEADTOOLS Annotations

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.