Class TransformHistory

java.lang.Object
org.apache.batik.apps.svgbrowser.TransformHistory

public class TransformHistory extends Object
This class implements a transform history mechanism.
  • Field Details

    • transforms

      protected List transforms
      The transform stack.
    • position

      protected int position
      The current position in the stack.
  • Constructor Details

    • TransformHistory

      public TransformHistory()
  • Method Details

    • back

      public void back()
      Goes back of one position in the history. Assumes that canGoBack() is true.
    • canGoBack

      public boolean canGoBack()
      Whether it is possible to go back.
    • forward

      public void forward()
      Goes forward of one position in the history. Assumes that canGoForward() is true.
    • canGoForward

      public boolean canGoForward()
      Whether it is possible to go forward.
    • currentTransform

      public AffineTransform currentTransform()
      Returns the current transform.
    • update

      public void update(AffineTransform at)
      Adds a transform to the history.