We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Connection between Arc and ArcTool class

Thread ID:

Created:

Updated:

Platform:

Replies:

42310 Mar 26,2006 11:03 PM Mar 27,2006 11:29 PM Windows Forms 4
loading
Tags: Diagram
Rajesh Kumar
Asked On March 26, 2006 11:03 PM

Hi, Can anybody let me know what is the link between Arc and Arctool classes. I am new to this. We have a Arc and corresponding ArcTool classes. What is the relation between these 2 classes for that matter any symbol class and its related tool class. Thanks in advance for answering! Regards, Rajesh

Administrator [Syncfusion]
Replied On March 27, 2006 02:06 AM

Hi Rajesh, Thanks for your interest in Syncfusion. An Arc class is used to draw Arcs programmatically by giving the required points like X,Y,Width,Height,StartAngle,SweepAngle.The order in which the points are given influences the way the bounding rectangle,the startAngle,the sweepAngle are calculated for an Arc. An ArcTool is an interactive Tool for drawing Arcs.This class inherits the Tool class which is the base class for all the user interface Tools. Kindly, refer the ContextMenus Sample( Diagram.Windows\Samples\Quick Start\ContextMenus\CS ) that features the implementation of the user interface Tools. I have created a Sample depicting the differences between the Arc and the ArcTool. Please let me know if this helps you. Regards, Praveena.

Arc_ArcTool.zip

Rajesh Kumar
Replied On March 27, 2006 02:22 AM

Hi Praveena, Thanks for the Reply. Can you tell me onething, Is there any Link between the Arc and Arc Tool, Because when register the MyArcTool (Assuming that i am derving from the ArcTool), I have to attach a method to the factory delegate which would draw the Arc. I am bit confused with these 2. Can you tell me whether any documentation i can refer to regarding API''s and other things. Regards, Rajesh > > Hi Rajesh, > > Thanks for your interest in Syncfusion. > > An Arc class is used to draw Arcs programmatically by giving the required points like X,Y,Width,Height,StartAngle,SweepAngle.The order in which the points are given influences the way the bounding rectangle,the startAngle,the sweepAngle are calculated for an Arc. > > An ArcTool is an interactive Tool for drawing Arcs.This class inherits the Tool class which is the base class for all the user interface Tools. > > Kindly, refer the ContextMenus Sample( Diagram.Windows\Samples\Quick Start\ContextMenus\CS ) that features the implementation of the user interface Tools. > > I have created a Sample depicting the differences between the Arc and the ArcTool. > > Please let me know if this helps you. > > Regards, > Praveena.

Arc_ArcTool.zip

Administrator [Syncfusion]
Replied On March 27, 2006 06:01 AM

Hi Rajesh, Thanks for the update. The customised MyArcTool instance must be registered using the ShapeFactory delegate which in turn will call the DefaultFactory method that draws the Arc. If your intention is to create a Customised ArcTool, kindly refer the Sample that i have modified. Please refer the ArcTool.cs file ( Diagram.Windows\Src\Tools\ArcTool.cs ) that would help you to have an idea about this. Please let me know if this helps you. Regards, Praveena.

Arc_ArcTool0.zip

Rajesh Kumar
Replied On March 27, 2006 11:29 PM

Hi Praveena, Thanks for the reply. The sample code helped me a lot in understanding thanks once again. Regards, Rajesh >Hi Rajesh, > > Thanks for the update. > > The customised MyArcTool instance must be registered using the ShapeFactory delegate which in turn will call the DefaultFactory method that draws the Arc. > > If your intention is to create a Customised ArcTool, kindly refer the Sample that i have modified. > > Please refer the ArcTool.cs file ( Diagram.Windows\Src\Tools\ArcTool.cs ) that would help you to have an idea about this. > > Please let me know if this helps you. > > Regards, > Praveena. >

Arc_ArcTool0.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;