I want child figure (org.eclipse.draw2d.Figure) to be relative to the top-right corner of the parent (I want place some small icon, which will be ImageFigure, to be 12 pixels from top and right borders). Is there an existing layout manager that can layout child this way?
The org.eclipse.draw2d.XYLayout is not capable of measuring position relative to corner other than top-left.
Of course, I can:
- Write layout manager myself
- Layout children figure every time bounds are changed for the parent (in parent layout() method).
However, I would like to know if some existing layout manager provides that functionality.
Note that question is about Eclipse GEF, not bare SWT/JFace or Swing.