protected void paintUMLFigure(Graphics g, Rectangle r) {
g.translate(getLocation());
int halfWidth = Math.round(getSize().width / 2);
int halfHeight = Math.round(getSize().height / 2);
PointList points = new PointList(4);
points.addPoint(halfWidth, 0);
points.addPoint(getSize().width - 1, halfHeight);
points.addPoint(halfWidth, getSize().height - 1);
points.addPoint(0, halfHeight);
g.drawPolygon(points);
}