Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » add dropdown menu with Nebula XY graph
add dropdown menu with Nebula XY graph [message #1730664] Wed, 27 April 2016 13:57 Go to next message
Cyril LAGARDE is currently offline Cyril LAGARDEFriend
Messages: 14
Registered: January 2016
Junior Member
Hello

I'm trying to have a dropdown menu with a mouse right click on a specific point but I don't know how to do (Is-it possible to do?)

I use this to draw my points.
CircularBufferDataProvider traceDataProvider = new CircularBufferDataProvider(false);
traceDataProvider.setBufferSize(size);
traceDataProvider.setCurrentXDataArray(x);
traceDataProvider.setCurrentYDataArray(y);

trace = new Trace("test", xyGraph.getPrimaryXAxis(), xyGraph.getPrimaryYAxis(), traceDataProvider);
      trace.setPointStyle(PointStyle.FILLED_DIAMOND);
      trace.setPointSize(10);
      trace.setTraceType(TraceType.POINT);
      trace.setAntiAliasing(false);

index.php/fa/25776/0/

Thanks
  • Attachment: nebula.png
    (Size: 19.54KB, Downloaded 686 times)
Re: add dropdown menu with Nebula XY graph [message #1730809 is a reply to message #1730664] Thu, 28 April 2016 15:55 Go to previous messageGo to next message
Cyril LAGARDE is currently offline Cyril LAGARDEFriend
Messages: 14
Registered: January 2016
Junior Member
Hello

Finally I have found a solution.

Thanks
Re: add dropdown menu with Nebula XY graph [message #1734049 is a reply to message #1730809] Fri, 03 June 2016 10:55 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

Hi Cyril,

Please let us know what it is so that others can benefit as well.

Cheers,

Wim
Re: add dropdown menu with Nebula XY graph [message #1734433 is a reply to message #1734049] Wed, 08 June 2016 11:19 Go to previous message
Cyril LAGARDE is currently offline Cyril LAGARDEFriend
Messages: 14
Registered: January 2016
Junior Member
Hi, with this code

canvas = new Canvas(parent, SWT.DOUBLE_BUFFERED);
LightweightSystem lws = new LightweightSystem(canvas);
xyGraph = new XYGraph();
lws.setContents(xyGraph);
Menu canvasPopupMenu = new Menu(canvas);
MenuItem deleteItem = new MenuItem(canvasPopupMenu, SWT.NONE);
...
Previous Topic:[GanttChart] Settings: allowInfiniteHorizontalScrollBar nowhere called?
Next Topic:draw axial graph
Goto Forum:
  


Current Time: Fri Apr 19 12:21:22 GMT 2024

Powered by FUDForum. Page generated in 0.02634 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top