public void saveState(AffineTransform at,Shape clip,Rectangle2D region,double sx,double sy){
  GraphicsState gstate=new GraphicsState();
  gstate.theTransform=at;
  gstate.theClip=clip;
  gstate.region=region;
  gstate.sx=sx;
  gstate.sy=sy;
  redrawList.add(gstate);
}

public void saveState ( AffineTransform at , Shape clip , Rectangle2D region , double sx , double sy ) { GraphicsState gstate = new GraphicsState ( ) ; gstate . theTransform = at ; gstate . theClip = clip ; gstate . region = region ; gstate . sx = sx ; gstate . sy = sy ; redrawList . add ( gstate ) ; }
save graphics state of a pathgraphics for later redrawing of part of page represented by the region in that state
