Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7644465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:41:43+00:00 2026-05-31T09:41:43+00:00

Can someone explain the difference/relationship between bounds and constraints in Draw2d? I’m trying to

  • 0

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 (Rectangles) 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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:41:44+00:00Added an answer on May 31, 2026 at 9:41 am

    The bounds of a child figure are only relative to the parent figure, if isCoordinateSystem() of the parent returns true – which is hardly ever the case. So in practice bounds are absolute coordinates.

    The rectangles you provide as constraints in XYLayout are expected to contain coordinates relative to the parent and the layout then converts those relative coordinates in a way that is appropriate. If e.g. no figure in the parent chain has a local coordinate system, then the resulting bounds will be absolute coordinates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone explain the difference between these two, the first one is taken from
Can someone explain the difference between apache mod_wsgi in daemon mode and django fastcgi
Can someone explain this to me? In particular the difference between: http://github.com/whymirror/greg and http://piumarta.com/software/peg/
Can someone please explain to me the difference between the AppSettings and ApplicationSettings sections
Can someone please explain me what's the difference between Swing and AWT? Are there
Can someone explain the difference between .last() and :last ? I can't seem to
Can someone explain the difference between using a $ when defining variables in jQuery
Can someone explain what the difference between assert and verify is please. I know
Can someone please explain the difference between ViewState and Session? More specifically, I'd like
Can someone please explain the difference between IE8 browser mode and document mode in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.