Package org.apache.batik.apps.svgbrowser
Class TransformHistory
- java.lang.Object
-
- org.apache.batik.apps.svgbrowser.TransformHistory
-
public class TransformHistory extends java.lang.ObjectThis class implements a transform history mechanism.- Version:
- $Id: TransformHistory.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected intpositionThe current position in the stack.protected java.util.ListtransformsThe transform stack.
-
Constructor Summary
Constructors Constructor Description TransformHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidback()Goes back of one position in the history.booleancanGoBack()Whether it is possible to go back.booleancanGoForward()Whether it is possible to go forward.java.awt.geom.AffineTransformcurrentTransform()Returns the current transform.voidforward()Goes forward of one position in the history.voidupdate(java.awt.geom.AffineTransform at)Adds a transform to the history.
-
-
-
Method Detail
-
back
public void back()
Goes back of one position in the history. Assumes thatcanGoBack()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 thatcanGoForward()is true.
-
canGoForward
public boolean canGoForward()
Whether it is possible to go forward.
-
currentTransform
public java.awt.geom.AffineTransform currentTransform()
Returns the current transform.
-
update
public void update(java.awt.geom.AffineTransform at)
Adds a transform to the history.
-
-