Class TransformHistory
java.lang.Object
org.apache.batik.apps.svgbrowser.TransformHistory
This class implements a transform history mechanism.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe current position in the stack.protected ListThe transform stack. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidback()Goes back of one position in the history.booleanWhether it is possible to go back.booleanWhether it is possible to go forward.Returns the current transform.voidforward()Goes forward of one position in the history.voidAdds 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.
-