class ConfigurationButtonFactory {

    public static ConfigurationButton createConfigurationButton(GazePlay gazePlay) {
        Dimension2D screenDimension = gazePlay.getCurrentScreenDimensionSupplier().get();
        ConfigurationButton configurationButton = new ConfigurationButton(screenDimension);
        configurationButton.addEventHandler(
            MouseEvent.MOUSE_CLICKED,
            e -> gazePlay.onDisplayConfigurationManagement());
        return configurationButton;
    }

}