Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » How to layout an XYGraph with others Figures(I need to layout a XYGraphToolbar and the XYGraph with a Figure complementing the toolbar. The result is an empty Figure.)
How to layout an XYGraph with others Figures [message #1776088] Fri, 10 November 2017 14:59 Go to next message
David Zanetti is currently offline David ZanettiFriend
Messages: 1
Registered: November 2017
Junior Member
The idea is to extend the XYGraphToolbar with another toolbar, called here "header". Then display the combined toolbar and the XYGraph bellow.

When laying out the three Figures, the result is an empty Figure.

Playing with the constraints, I was able to display approximately the graph, but I was not able to accurately set those constraints. The getPreferedSize() method of the xyGraph is returning a Dimension (0.0, 0.0).

Canvas c = new Canvas(parent, SWT.DOUBLE_BUFFERED);

Figure root = new Figure();

LightweightSystem lws = new LightweightSystem(c);

XYGraph xyGraph = new XYGraph();
XYGraphToolbar xyGraphToolbar = new XYGraphToolbar(xyGraph, XYGraphFlags.COMBINED_ZOOM);


Figure toolbar = new Figure();
ToolbarLayout toolbarLayout = new ToolbarLayout();

Figure header = createHeader();


Re: How to layout an XYGraph with others Figures [message #1776414 is a reply to message #1776088] Thu, 16 November 2017 10:00 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

Hi David,

Please provide a full snippet as small as possible that demonstrates the problem.

Specifically it must have a main method like this one [1].



Previous Topic:Resizable DropDown Box in NatCombo
Next Topic:CSS styling for Nebula Gallery and custom widgets in Eclipse 4.6
Goto Forum:

Current Time: Sat Apr 20 04:42:18 GMT 2024

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

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

Back to the top