Skip to main content



      Home
Home » Eclipse Projects » GEF » some resizing or clipping problem with nonresizeble edit policy items...
some resizing or clipping problem with nonresizeble edit policy items... [message #45246] Mon, 25 November 2002 06:30 Go to next message
Eclipse UserFriend
hi all,

this morning i got the latest distribution, and i had a strange problem.
this is big box, there is another box inside it, and inside the second box
there are smaller boxes, which are not resizeble. when i resize parent or
grandparent, or move them, the smaller guys start getting smaller and at
last they dissappear. any idea where to look at?

thanx,
ozgur
Re: some resizing or clipping problem with nonresizeble edit policy items... [message #45277 is a reply to message #45246] Mon, 25 November 2002 06:40 Go to previous messageGo to next message
Eclipse UserFriend
well, i found what is causing it but i didn't understand exactly, this
happens each time the figure repaints. problem is cropping... what is wrong
with it?

protected void paintFigure(Graphics g)
{
Rectangle rClient = getBounds();
System.out.println("client area: " + rClient);
Color color = BPMResources.clInputPort;
g.setBackgroundColor(color);
g.fillRectangle(rClient);

____________________________
rClient.crop( new Insets(0, 0, 1, 1) );
-------------------------------------

g.drawRectangle(rClient);





"Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
news:art1n4$jlf$1@rogue.oti.com...
> hi all,
>
> this morning i got the latest distribution, and i had a strange problem.
> this is big box, there is another box inside it, and inside the second box
> there are smaller boxes, which are not resizeble. when i resize parent or
> grandparent, or move them, the smaller guys start getting smaller and at
> last they dissappear. any idea where to look at?
>
> thanx,
> ozgur
>
>
Re: some resizing or clipping problem with nonresizeble edit policy items... [message #45307 is a reply to message #45246] Mon, 25 November 2002 06:42 Go to previous message
Eclipse UserFriend
anyway i fixed it, correct version follows

Rectangle rDraw = rClient.getCropped(new Insets(0, 0, 1, 1) );

"Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
news:art1n4$jlf$1@rogue.oti.com...
> hi all,
>
> this morning i got the latest distribution, and i had a strange problem.
> this is big box, there is another box inside it, and inside the second box
> there are smaller boxes, which are not resizeble. when i resize parent or
> grandparent, or move them, the smaller guys start getting smaller and at
> last they dissappear. any idea where to look at?
>
> thanx,
> ozgur
>
>
Previous Topic:Bring figure to front when select
Next Topic:Bendpoint move/create feedback
Goto Forum:
  


Current Time: Sun May 11 04:18:42 EDT 2025

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

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

Back to the top