double radians = Math.atan2(event.getY() - osPoint.getCenterY(), event.getX()

- osPoint.getCenterX());

double degrees = Math.round((radians * 180 / Math.PI));

double rotation = degrees + 90;

osPoint.setRotate(osPoint.getRotate() + rotation);

osHline.setRotate(osHline.getRotate() + rotation);

osVline.setRotate(osVline.getRotate() + rotation);