public void push(){
  state.cliprgn=g.getClipBounds();
  stack.push(state);
  state=(GraphicsState)state.clone();
}

public void push ( ) { state . cliprgn = g . getClipBounds ( ) ; stack . push ( state ) ; state = ( GraphicsState ) state . clone ( ) ; }
push the current graphics state onto the stack . continue working with the current object ; calling pop ( ) restores the state of this object to its state when push ( ) was called .
