public class TransformHistory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
position
The current position in the stack.
|
protected List |
transforms
The transform stack.
|
| Constructor and Description |
|---|
TransformHistory() |
| Modifier and Type | Method and Description |
|---|---|
void |
back()
Goes back of one position in the history.
|
boolean |
canGoBack()
Whether it is possible to go back.
|
boolean |
canGoForward()
Whether it is possible to go forward.
|
AffineTransform |
currentTransform()
Returns the current transform.
|
void |
forward()
Goes forward of one position in the history.
|
void |
update(AffineTransform at)
Adds a transform to the history.
|
protected List transforms
protected int position
public void back()
canGoBack() is true.public boolean canGoBack()
public void forward()
canGoForward() is true.public boolean canGoForward()
public AffineTransform currentTransform()
public void update(AffineTransform at)
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.