Added automated calculation of the x- and y-title-offsets to all classes

Signed-off-by: Christian Jung <christian.jung@udo.edu>