dc.drawRectangle() radius and other objects...?

Hi, do they need advice on how to create a radius for a square, then how to draw a straight line horizontally and vertically?

dc.setColor(Gfx.COLOR_WHITE, Gfx.COLOR_TRANSPARENT);
dc.setPenWidth(1.5);
dc.drawRectangle(40, 80, 125, 100);


Thank you