public void setY(float pY) { bgRect.setY(pY); fgRect.setY(pY + FGRECT_MARGIN_WIDTH); fgText.setY(pY + BGRECT_MARGIN_WIDTH); }