View not Displaying Properly [message #283297] |
Thu, 31 March 2005 13:47  |
Eclipse User |
|
|
|
Hello all,
I am hoping someone can help me with a problem I am having creating a
view. This view is displaying a Plot. When createPartControl is called
all I do is store the Composite that is passed to it. I need to wait
until the data is set before creating the plot. The customer has a
requirement that requires more than one plot per view based on the data
that is passed to it. When I the data is set I build up the view using
this code:
<code> FillLayout layout = new FillLayout(SWT.VERTICAL);
parent.setLayout(layout);
Composite swtComp = new Composite(parent, SWT_EMBEDDED);
Frame awtFrame = SWT_AWT.new_Frame(swtComp);
chart = new JCChart();
pnl = new PlotPanel(chart);
awtFrame.add(pnl);
area = new CustomChartArea(this, chart);
chart.setChartArea(area);
...
</code>
When the view is displayed the screen is blank and no error has occurred.
If I resize the view the plot is displayed correctly.
I have tried calling all the repaint/update/redraw calls I could find and
it does not seem to work. I see my overloaded paint functions for the
plot being called. Does anyone have any other ideas on what I can do to
display the plot when it is first drawn?
Kevin
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03402 seconds