Method used to translate component
void translate(double translateX, double translateY) { position = position.translate(translateX, translateY); }