b.getStyle().setStyleProperty(TextStyleKeys.FONT, "SansSerif");
b.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(12));
LabelElementFactory labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
labelFactory.setMinimumSize(new FloatDimension(200, 15));
labelFactory.setText("People in the same office:");
b.addElement(labelFactory.createElement());
labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(200, 0));
labelFactory.setMinimumSize(new FloatDimension(-100, 15));
labelFactory.setText("Notes:");
b.addElement(labelFactory.createElement());
final Element line = HorizontalLineElementFactory.createHorizontalLine(15);
line.getStyle().setStyleProperty(ElementStyleKeys.STROKE, new BasicStroke(1));