Chart\Web Forms\ThinWeb\Image Map Tools
Chart\Mvc\ThinWeb\Image Map Tools
Diagram\Web Forms\ThinWeb\Image Map Tools
Diagram\Mvc\ThinWeb\Image Map Tools
The ThinWeb control provides a set of tools, which when present the controller tools collection emulate the functionality of a HTML image map. The following table lists each tool and provides a short description of the tool functionality:
Type | Description |
NBrowserRedirectTool | Navigates the client browser to the URL specified in the Url interactivity attribute of the chart or diagram document element that is below the mouse. |
NTooltipTool | Shows a tooltip text or HTML specified in the Toolip interactivity attribute of the chart or diagram document element that is below the mouse. |
NCursorTool | Changes the browser cursor to the cursor attribute of the chart or diagram document element that is below the mouse. |
The following code snippets show to use these tools in the context of the chart and diagram ThinWeb controls.
Nevron Chart ThinWeb
C# |
Copy Code
|
---|---|
protected void Page_Load(object sender, EventArgs e) { if (!NThinChartControl1.Initialized) { // get the default chart // add bar serires to the chart // add one bar NInteractivityStyle interactivityStyle = new NInteractivityStyle(); // configure the interactivity style // configure the controller // Create a tooltip tool // time in milliseconds before showing a tooltip tooltipTool.InitialDelay = 1000; // time in milliseconds showing the the tooltip // Create a browser redirect tool // whether to open the url link in a new browser window NThinChartControl1.Controller.Tools.Add(browserRedirectTool); } } |
Nevron Diagram ThinWeb
C# |
Copy Code
|
---|---|
protected void Page_Load(object sender, EventArgs e) { if (!NThinDiagramControl1.Initialized) { // add the client mouse event tool NDrawingDocument document = NThinDiagramControl1.Document; NBasicShapesFactory factory = new NBasicShapesFactory(document); document.ActiveLayer.AddChild(circle); // configure the interactivity style circle.Style.InteractivityStyle = interactivityStyle; NThinDiagramControl1.SizeToContent(); // configure the controller // Create a cursor tool // Create a browser redirect tool // whether to open the url link in a new browser window NThinDiagramControl1.Controller.Tools.Add(browserRedirectTool); } } |
Chart\Web Forms\ThinWeb\Image Map Tools
Chart\Mvc\ThinWeb\Image Map Tools
Diagram\Web Forms\ThinWeb\Image Map Tools
Diagram\Mvc\ThinWeb\Image Map Tools