Converted to project to eclipse.
Added offset parameter, so we can add some margin between max/min and border.