private void applyTransformEnd(){
  currentMatrix=transformations.pop();
}

private void applyTransformEnd ( ) { currentMatrix = transformations . pop ( ) ; }
sets the current transform matrix to the matrix of the underlying element when leaving an element . manages the transformation stack .
