Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Setting custom grid layer on AbstractGraphicalEditPart...(want to set dotted grid on AbstractGraphicalEditPart...)
Setting custom grid layer on AbstractGraphicalEditPart... [message #557554] Wed, 08 September 2010 05:07 Go to next message
amay is currently offline amayFriend
Messages: 13
Registered: July 2009
Junior Member
Hello,
I am using AbstractGraphicalEditPart as a root edit part in my diagram and want to show dotted grid in my diagram. I have subclassed the GridLayer class to draw the grid I want, but don't know how to set it as a GridLayer on the edit part. I searched on the forum where they asked to use ScalableFreeformRootEditPart or ScalableRootEditPart but I don't want to use them.

Please let me know how I can do that.

Thank you,
Amay.
Re: Setting custom grid layer on AbstractGraphicalEditPart... [message #628722 is a reply to message #557554] Thu, 23 September 2010 18:56 Go to previous message
rex is currently offline rexFriend
Messages: 9
Registered: September 2010
Junior Member
If you decide to use your own RootEditPart class, you need to manage a LayeredPane instance in your class. It is the key to support multiple layers for your diagram.

You may look into source code of subclasses of SimpleRootEditPart e.g. FreeformGraphicalRootEditPart and/or ScalableRootEditPart to learn how to do that.
Previous Topic:[Zest] ExpandableTreeLayoutAlgorithm.java
Next Topic:auto layout algorithm for BMPMN diagram
Goto Forum:
  


Current Time: Sun Dec 21 19:35:08 GMT 2014

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

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