Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Can I change context pad location for a shape
Can I change context pad location for a shape [message #986881] Thu, 22 November 2012 09:03 Go to next message
Raghava Rao is currently offline Raghava RaoFriend
Messages: 64
Registered: July 2009
Member
Hello All,

Context pad will appear for a shape based on Context Pad Location.the rectangle what ever passed to ContextPad.

ILocation origin = getAbsoluteLocation(ga);
contextButtonPadData.getPadLocation().setRectangle(origin.getX(), origin.getY(),
ga.getWidth(), ga.getHeight());

Contextpad will appear at Top && Right of the rectangle.

Contextpad will not appear fully if shape is at the corner of Horizantal and Vertical scrollbars as shown in attachment.

Is there any possiblity if Contextpad is not in viewport area, can I change contextpad location to Top && Left of the shape,

Advance thanks for your reply.

Thanks,
Raghav
Re: Can I change context pad location for a shape [message #986948 is a reply to message #986881] Thu, 22 November 2012 13:45 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1635
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Raghav,

this cannot be changed as of today. What you may try is to adapt the
location of the context pad from within yout tool behavior provider in such
a case.

Michael
Previous Topic:No Layout Manager Error
Next Topic:GraphitiConnectionEditPart causes problem
Goto Forum:
  


Current Time: Wed Nov 26 23:29:42 GMT 2014

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

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