translate method

void translate(
  1. double translateX,
  2. double translateY
)

Method used to translate component

Implementation

void translate(double translateX, double translateY) {
  position = position.translate(translateX, translateY);
}