Geeks With Blogs
José Escrich Blog extensibility thoughts

There are an easily way to change the position, size and order of the swimlane shapes in your dsl. To do that, you just have to create a partial class of the swimlane that you want to modify its boundary and then override its BoundRules property, like this:

Also you must create the BoundRules custom class and override the GetCompliantBounds method which returns the rectangle in which the swimlane will be painted. This method receives the shape and the proposed rectangle, with those values you can alter any of that as you wish.

Specifying the rectangle you be able to change the location X,Y and also the size of that swimlane.


Posted on Sunday, February 25, 2007 12:39 PM Software Factories , DSL Tools | Back to top

Comments on this post: DSL Tools: how to change the size, position and order of the swimlanes.

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Jose Escrich | Powered by: