public class TransformHistory
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
position |
The current position in the stack.
|
protected java.util.List |
transforms |
The transform stack.
|
| Constructor | Description |
|---|---|
TransformHistory() |
| Modifier and Type | Method | 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.
|
java.awt.geom.AffineTransform |
currentTransform() |
Returns the current transform.
|
void |
forward() |
Goes forward of one position in the history.
|
void |
update(java.awt.geom.AffineTransform at) |
Adds a transform to the history.
|
protected java.util.List transforms
protected int position
public void back()
canGoBack() is true.public boolean canGoBack()
public void forward()
canGoForward() is true.public boolean canGoForward()
public java.awt.geom.AffineTransform currentTransform()
public void update(java.awt.geom.AffineTransform at)
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.