* @param y position of the table header baseline
* @throws FontFormatException
* @throws IOException
*/
private void drawTableHeader(Graphics2D g2d,final int y) throws FontFormatException, IOException{
Date date = Date.getInstance(0); // TODO very ugly solution
GlyphVector gv = opPainter.createGlyphVector(g2d, date.getStartOfWeek()+" to "+date.getEndOfWeek(), 19); // TODO externalize
int x = positions.lastWeek+50-(int)Math.rint(gv.getVisualBounds().getWidth());
g2d.drawGlyphVector(gv, x, y);
String columnTitle = "Forecast";
gv = opPainter.createGlyphVector(g2d, columnTitle, 19);
g2d.drawGlyphVector(gv, positions.forecast, y);