Class GraphicsResetHelper

java.lang.Object
com.github.weisj.jsvg.util.GraphicsResetHelper

public class GraphicsResetHelper extends Object
A utility class that holds a Graphics2D object and is able to reset it back to its original configuration, as this is often more efficient than creating a new graphics instance. This class does not track what parameters have been modified, nor does it reset all configuration parameters. Which parameters are reset should be expanded as needed.
  • Constructor Details

    • GraphicsResetHelper

      public GraphicsResetHelper(Graphics2D graphics)
  • Method Details

    • graphics

      public Graphics2D graphics()
    • reset

      public void reset()