public abstract class AbstractCameraController extends AbstractController implements ICameraMouseController
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_UPDATE_VIEW |
protected Coord2d |
prevMouse |
protected CameraThreadController |
threadController |
controllerListeners, targets
Constructor and Description |
---|
AbstractCameraController() |
AbstractCameraController(Chart chart) |
Modifier and Type | Method and Description |
---|---|
void |
addSlaveThreadController(CameraThreadController controller) |
void |
dispose() |
void |
removeSlaveThreadController() |
protected void |
rotate(Coord2d move) |
protected void |
rotate(Coord2d move,
boolean updateView) |
protected void |
shift(float factor) |
protected void |
shift(float factor,
boolean updateView) |
void |
startThreadController() |
void |
stopThreadController() |
protected void |
zoomX(float factor) |
protected void |
zoomX(float factor,
boolean updateView) |
protected void |
zoomY(float factor) |
protected void |
zoomY(float factor,
boolean updateView) |
protected void |
zoomZ(float factor) |
protected void |
zoomZ(float factor,
boolean updateView) |
addControllerEventListener, chart, fireControllerEvent, register, removeControllerEventListener, unregister
public static boolean DEFAULT_UPDATE_VIEW
protected CameraThreadController threadController
protected Coord2d prevMouse
public AbstractCameraController()
public AbstractCameraController(Chart chart)
public void dispose()
dispose
in class AbstractController
protected void rotate(Coord2d move)
protected void rotate(Coord2d move, boolean updateView)
protected void shift(float factor)
protected void shift(float factor, boolean updateView)
protected void zoomX(float factor)
protected void zoomX(float factor, boolean updateView)
protected void zoomY(float factor)
protected void zoomY(float factor, boolean updateView)
protected void zoomZ(float factor)
protected void zoomZ(float factor, boolean updateView)
public void addSlaveThreadController(CameraThreadController controller)
addSlaveThreadController
in interface ICameraMouseController
public void removeSlaveThreadController()
public void stopThreadController()
public void startThreadController()
Copyright © 2016. All rights reserved.