public void draw(Graphics g) {
if (font == null) {
font = g.getFont();
}
Rectangle rect = (Rectangle) this.getNeededSize();
Vector center = this.getCenterVector();
GraphicUtils.fill(g, rect.modifyCenter(center), Color.blue);
Vector pos = this.parent.getPositionFor(this);
GraphicUtils.drawString(g, pos.add(2, 0), this.content1);
float xModifier = g.getFont().getWidth(this.content1);
GraphicUtils.drawString(g, pos.add(xModifier + 5, 0), this.content2);
GraphicUtils.draw(
g,
new PointLine(pos.add(xModifier + 3, 3), pos.add(xModifier + 3,
15)), Color.white);
GraphicUtils.draw(g, this.getNeededSize().getBoundingRect()
.modifyCenter(center), Color.white);
}