How to get getSeries that is X and Y co-ordinates details on right click menu options of vaadin charts? - vaadin8

I am working on vaadin charts(columnrange) where I have to implement rightclick menu option so, on right click menu option
I want to retrieve chart details that is X and Y co-ordinates on which user has right clicked it
We tried the contextmenu option and added our chart component into it however in contextClickListener we are not getting right clicked X and Y coordinates details

Related

Centre alignment in CKEditor 4.10 toolbar is disabled when selecting image inserted in the editor

I am using CKEditor version 4.10 in an mail delivery system project for composing emails. I have added justify plugin to get the justify tools in the toolbar. Since this is an email composing, user may want to align the contents(including images inserted) as Left, Right, Centre etc. But even though I can choose Left and Right align buttons in the toolbar after selecting the image, I cannot choose centre align button because it is disabled. Does anyone know how can I enable the centre align button on selecting the images inserted in the editor and can able to align the same in centre too ?
Click right on image then click Image properties option, when page open then click advance Tab and in the style field delete float:right; Or float:left; and just type display:block;margin:auto; . Then you can see image set center on page.

How to create dropdown splitted button (like Mail.app)?

Mail.app at Mac OS have cool dropdown buttons at toolbars. It is not simple dropdown button, that button is splitted to 2 parts (button and dropdown list). How can I create such type of button with menu so it have 2 actions (menu and click)?
Button:
Menu:
I assume Apple uses a NSSegmentedControl object there. One for the flag, one for the arrow.
To replicate this behavior, add a segmentedControl in Interface Builder with two segments and set its Mode to Momentary.
Then add your images or titles and set the width of the second segment to an appropriate value.
This was my quick outcome:

How to implement NSToolbarItem Drag/Drop behaviour?

I have a typical cocoa application. There is a toolbar item on the toolbar, current behaviour is to draw a rectangle in the view of main window whenever this toolbar item is clicked.
However, now there is a new requirement: user needs to be able to drag this toolbar item to a position in the main view so that the rectangle will be drawn on that position (where user release the mouse to drop the toolbar item).
I checked the apple dev document at https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSToolbarItem_Class/Reference/Reference.html and https://developer.apple.com/library/mac/documentation/cocoa/Conceptual/Toolbars/Toolbars.html#//apple_ref/doc/uid/10000109i , but cannot find any method related to this.
Could anyone know how to do it? Thanks.

animated button on the left and right on xcode 4.2

in my interface there is a button named Forme1 and two arrows one on the left and on the right of the button
I want when I click on the arrow on the right/left show me another button: button 2(Forme2)
with an animation

How can I create a menu animated with two arrows?

I have a menu animated with two arrows
one in the left of the button and one in the right of the button
the direction of the arrow is right for the right arrow and left for the left arrow
I want when I click in the arrow in the right show me another one without exit the corrent view ,the same for the left arrow but he show me another button(option) to choose
and when I click on the right or the left button I want that he show me the new button with an animation it appears like a train animation when he change the button
can you give me an idea how can I do this ??
You can create an UIScrollView with UIButtons and put two UIButtons to left and right scroll.
You can follow this tutorial for it -
http://blog.sallarp.com/iphone-sliding-menu/

Resources