Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Collapse/Minimize for shape
Collapse/Minimize for shape [message #675943] Thu, 02 June 2011 03:59 Go to next message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
Hello,

Does Someone know how do I implement a minimize/collapse feature for a container shape? I have a container shape with two sections(ContainerShapes) within. There are some texts,labels,images go into these sections. I want to be able to collapse one section so that the other section gets maximum space. I see a similar feature available in GMF but could not get it working in graphiti?

Any Pointers ? Thanks in advance for Help.

Regards,
Murthy
Re: Collapse/Minimize for shape [message #676749 is a reply to message #675943] Mon, 06 June 2011 12:10 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1921
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Unrotunatly, there's nothing in Graphiti that would make this work
out-of-the-box.

What you would do to achieve that is storing the expand/collapse state with
a property locally on your container shape and have a custom feature that
changes this property. After changing it would call layoutPictogramElement
and your layout feature for this object would update the children (add or
remove) accordingly.

HTH,
Michael


"Murthybhat" wrote in message news:is71b3$emm$1@news.eclipse.org...

Hello,

Does Someone know how do I implement a minimize/collapse feature for a
container shape? I have a container shape with two sections(ContainerShapes)
within. There are some texts,labels,images go into these sections. I want to
be able to collapse one section so that the other section gets maximum
space. I see a similar feature available in GMF but could not get it working
in graphiti?

Any Pointers ? Thanks in advance for Help.

Regards,
Murthy
Previous Topic:Updating text in graphiti
Next Topic:Override RenderingStyle
Goto Forum:
  


Current Time: Sun Jul 12 12:53:14 GMT 2020

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

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

Back to the top