Refactored and changed centering for JavaFX TestVis