Hi. I would like collapsed swimlanes to look like a regular shape. I have created a custom shape for "shape=swimlane" which paints a mxSwimlaneShape if expanded and a mxRectangleShape when collapsed. This works well.


The only difference is the label position. The (maximum) bounds for the label of a normal vertex is the full vertex box. The (maximum) bounds for a swimlane is the width of the swimlane vertex * the start height.


Is there an easy way to achieve this, or do I override something?


All the best!

asked 15 Mar '12, 04:59

Earthumb's gravatar image

accept rate: 16%

You could try matching it with spacingTop/spacingBottom instead.


answered 16 Mar '12, 04:28

Gaudenz's gravatar image

accept rate: 39%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 15 Mar '12, 04:59

Seen: 1,432 times

Last updated: 16 Mar '12, 04:28