Situation; I have a ContainerShape that stands for a package and inside I have my classes that I want to drag/move around.
Problem; I can't select multiple classes within the package via the "selection rectangle" (I can only select Shapes that way on the Diagram background) since it immediately starts moving the entire package.
So think changing the selection in ToolBehavior should do the trick;
overriding PictogramElement getSelection(PictogramElement originalPe, PictogramElement oldSelection)
to instead select the Diagram does not work since I can't distinguish between selectable/unselectable areas?
GraphicsAlgorithm getClickArea(PictogramElement pe)
to only return the title/borders does not work since I now can only move child elements on the clickable area
Michael Wenz Messages: 1706 Registered: July 2009 Location: Walldorf, Germany
I do not have a good idea to enable that for the selection tool, unless you
would make the package container shape inactive. But that would also
prohibit adding functionality like move, resize, etc. for a package and I
gues that is not wohat you like...
However, using the marquee tool to do the selection should work, also