|
|
|
Re: GEFrc3,eclipse RC3:draw2d can not get the correct result? [message #185431 is a reply to message #185321] |
Sat, 25 June 2005 04:19 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Yes, Figures now have a size of 0,0. This is an optimization which reduces
the amount of painting when editing a diagram.
"kavinwang" <kavin.fy.wang@gmail.com> wrote in message
news:d9ggh7$pn9$1@news.eclipse.org...
> Thank you!
>
> but that code can run under previous version, that is funny! It must be
> something changed in the newer version!
>
>
> "Asim Ullah" <asimullah@hotmail.com>
> ??????:201ea58c67ad4f103212752129d8c61f$1@www.eclipse.org...
>> Do you not have to setSize() first?
>> e.g
>>
>> Shape ellipse = new Ellipse();
>> ellipse.setSize(15,15);
>> ellipse.setBackgroundColor(ColorConstants.darkBlue);
>> ellipse.setOpaque(true);
>> Shape rectangle = new RectangleFigure();
>> rectangle.setBackgroundColor(ColorConstants.lightBlue);
>> rectangle.setSize(15,15);
>> rectangle.setOpaque(true);
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03330 seconds