Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Relation between figure bounds and display pixels
Relation between figure bounds and display pixels [message #788013] Wed, 01 February 2012 03:44 Go to previous message
Jan Krakora is currently offline Jan Krakora
Messages: 402
Registered: December 2009
Location: Prague
Senior Member
Hi,

I have two rectangles
RectangleFigure figure = new RectangleFigure();
parent.add(figure);
parent.setConstraint(figure, new Rectangle(10, 10, 20, 20));

figure = new RectangleFigure();
parent.add(figure);
parent.setConstraint(figure, new Rectangle(30, 30, 20, 20));
Where the parent has set the XYLayout.

I would expect those rectangles touch each other with theirs corners, but there is one pixel gap between them. Why is that??
 
Read Message
Read Message
Read Message
Previous Topic:EditPartViewer setProperty(...) method
Next Topic:Dotted rectangle when selecting a shape.
Goto Forum:
  


Current Time: Sat May 25 20:57:54 EDT 2013

Powered by FUDForum. Page generated in 0.01592 seconds