org.apache.batik.apps.svgbrowser

Class TransformHistory

public class TransformHistory extends Object

This class implements a transform history mechanism.
Field Summary
protected intposition
The current position in the stack.
protected Listtransforms
The transform stack.
Method Summary
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.
AffineTransformcurrentTransform()
Returns the current transform.
voidforward()
Goes forward of one position in the history.
voidupdate(AffineTransform at)
Adds a transform to the history.

Field Detail

position

protected int position
The current position in the stack.

transforms

protected List transforms
The transform stack.

Method Detail

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.

canGoForward

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

currentTransform

public AffineTransform currentTransform()
Returns the current transform.

forward

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

update

public void update(AffineTransform at)
Adds a transform to the history.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.