Can someone explain the difference/relationship between bounds and constraints in Draw2d?
I'm trying to set up a GEF editor where instances of the same EditPart
class are nested inside each other (I can post a simplified version of the code if necessary, but my question is really just conceptual). Each figure has an XYLayout
and I'm setting the bounds and constraints (Rectangle
s) of each figure in refreshVisuals
.
Right now my bounds and constraints are the same for each figure. Is that correct? Since I'm using XYLayout
, are the coordinates of the bounds relative to the parent Figure
? How about for the constraints?