// prepare bounds
Rectangle bounds;
{
Figure hostFigure = getHostFigure();
bounds = request.getTransformedRectangle(hostFigure.getBounds());
FigureUtils.translateFigureToAbsolute(hostFigure, bounds.shrink(-1, -1));
}
// update selection feedback
m_resizeFeedback.setBounds(bounds);
// update text feedback
int newWidth = Math.max(bounds.width - 2, 0);