Package org.apache.batik.apps.svgbrowser
Class TransformHistory
java.lang.Object
org.apache.batik.apps.svgbrowser.TransformHistory
This class implements a transform history mechanism.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
The current position in the stack.protected List
The transform stack. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
back()
Goes back of one position in the history.boolean
Whether it is possible to go back.boolean
Whether it is possible to go forward.Returns the current transform.void
forward()
Goes forward of one position in the history.void
Adds a transform to the history.
-
Field Details
-
transforms
The transform stack. -
position
protected int positionThe 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 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
Returns the current transform. -
update
Adds a transform to the history.
-