use of org.eclipse.draw2d.Locator in project archi by archimatetool.
the class AbstractLabelFigure method setUI.
@Override
protected void setUI() {
setLayoutManager(new DelegatingLayout());
Locator labelLocator = new Locator() {
public void relocate(IFigure target) {
Rectangle bounds = calculateTextControlBounds();
if (bounds != null) {
translateFromParent(bounds);
target.setBounds(bounds);
}
}
};
add(getLabel(), labelLocator);
}
Aggregations