p.moveTo(-100.0f, -25.0f);
p.lineTo(+100.0f, -25.0f);
p.lineTo(-50.0f, +100.0f);
p.lineTo(+0.0f, -100.0f);
p.lineTo(+50.0f, +100.0f);
p.closePath();
// translate origin towards center of canvas
AffineTransform at = new AffineTransform();
at.translate(200.0f, 200.0f);
p.transform(at);