Skip to main content



      Home
Home » Modeling » Graphiti » CompositeShape Area Selection
CompositeShape Area Selection [message #1354920] Wed, 14 May 2014 09:36 Go to next message
Eclipse UserFriend
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

So how do I work around that?

thanks,
Simon
Re: CompositeShape Area Selection [message #1366477 is a reply to message #1354920] Mon, 19 May 2014 06:29 Go to previous message
Eclipse UserFriend
Hi Simon,

that's tricky.

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
multi-select does.

Michael
Previous Topic:Graphiti diagram animation
Next Topic:Layout Service
Goto Forum:
  


Current Time: Thu Jul 24 09:25:50 EDT 2025

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

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

Back to the top