public void setMovement(int move) {
    myMoveObject = move;
    repaint();
  }
This panel simulates and Android view parameter for controlling a button
ConstraintLayoutExamples/CycleEditor/src/com/google/androidstudio/motionlayoutcycles/AnimationPanel.java