Community
Participate
Working Groups
In the case of a container shape with child shapes it would be desirable to distinguish the resize handle which is used. A common use case is to treat the nested shapes as if they were obstacles where the resize stops. The absolute coordinates of the nested shapes should stay invariant in this scenario. To facilitate this the ResizeContext would have to provide this information. For the adjustment of the relative coordinates of the nested shapes it would also be helpful to have the initial upper left corner coordinates of the container.
Would like to target for Juno
First part is done: commit e02b0d0139ac84b06424b1fef44200985ccceeb4 Author: mgorning <matthias.gorning@sap.com> 2011-10-21 14:01:04 Committer: mgorning <matthias.gorning@sap.com> 2011-10-21 14:01:04 Parent: c13737dbfa2bef30e8eb6f4f59676cf515b453d6 (Bug 342262 - enhanced resize behavior for container shapes / provide correct resize direction in the resize context) Branches: origin/master, master
You can get the initial upper left corner coordinates of the container with: @Override public void resizeShape(IResizeShapeContext context) { GraphicsAlgorithm ga = context.getShape().getGraphicsAlgorithm(); ga.getX(); ga.getY(); ... }
Bookkeeping: Set target release
Part of Graphiti 0.9.0 (Eclipse Juno)