prepared for legendsGraphics.