Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Add feature (inside not active container shape)
Add feature (inside not active container shape) [message #908715] Wed, 05 September 2012 21:45 Go to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
I've a doubt:

I'm trying to add a new element A as a child of an element B, and B is structure like:

B {
  ContainerShape - Active (*BTop)
     Shape       - Not Active
     ContainerShape - Not Active (*B1)
}

and A :
A {
  ContainerShape - Active
     Shape       - Not Active
     ContainerShape - Not Active
}


In my add feature, i'm trying to add A to (*B1), but so far, no matter what I do, even putting new A in (*B1) explicitly, (and I checked it is there), the new element is allways drawn inside (*BTop).

Is this because (*B1) is not active??

Thanks in advance
Rui
Re: Add feature (inside not active container shape) [message #909077 is a reply to message #908715] Thu, 06 September 2012 13:48 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Yes, only active shapes span a new coordinate system, inactive ones use the
coordinate system of their parent to display their children.

Michael
Re: Add feature (inside not active container shape) [message #909692 is a reply to message #909077] Fri, 07 September 2012 15:41 Go to previous message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
Thanks. It seemed like that, but I needed confirmation.

Previous Topic:Layout after shape.setVisible
Next Topic:Greate Job! and I have some questions
Goto Forum:
  


Current Time: Sat Dec 20 01:08:02 GMT 2014

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

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