public class DragPanningController extends Object
| Constructor and Description |
|---|
DragPanningController(EditableImageRenderer imageRenderer)
Creates a new instance of this class, attached to the given renderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
centerImage()
Centers the image on the screen, keeping the current scale.
|
boolean |
isEnabled()
Returns true if the controller is enabled.
|
void |
setEnabled(boolean enabled)
Enables or disables this controller.
|
public DragPanningController(EditableImageRenderer imageRenderer)
setEnabled(true) in
order to be used.imageRenderer - the image rendererpublic void setEnabled(boolean enabled)
enabled - true if must be enabled, false otherwisepublic boolean isEnabled()
public void centerImage()
Copyright © 2003–2014 Tidalwave s.a.s. (http://tidalwave.it). All rights reserved.