Rectangle _xblockexpression_1 = null;
{
IFigure _parent = parentViewport.getParent();
Rectangle _bounds = _parent.getBounds();
final Dimension viewDimension = _bounds.getSize();
parentViewport.translateToAbsolute(viewDimension);
this.translateToRelative(viewDimension);
Dimension _size = freeformExtent.getSize();
Dimension _size_1 = freeformExtent.getSize();
viewDimension.shrink(_size.width, _size_1.height);
int _max = Math.max(0, viewDimension.width);