public class CameraTranslateControl extends Object implements DragBehaviour
| Modifier and Type | Field and Description |
|---|---|
protected float |
dragSpeed |
protected SciView |
sciView |
| Constructor and Description |
|---|
CameraTranslateControl(SciView sciView,
float dragSpeed) |
| Modifier and Type | Method and Description |
|---|---|
void |
drag(int x,
int y) |
void |
end(int x,
int y) |
float |
getDragSpeed() |
void |
init(int x,
int y)
This function is called upon mouse down and initializes the camera control
with the current window size.
|
void |
setDragSpeed(float dragSpeed) |
protected SciView sciView
protected float dragSpeed
public CameraTranslateControl(SciView sciView, float dragSpeed)
public float getDragSpeed()
public void setDragSpeed(float dragSpeed)
public void init(int x,
int y)
init in interface DragBehaviourpublic void drag(int x,
int y)
drag in interface DragBehaviourpublic void end(int x,
int y)
end in interface DragBehaviourCopyright © 2019–2022 scenery. All rights reserved.