Class NewtMousePickingController
- java.lang.Object
-
- org.jzy3d.chart.controllers.AbstractController
-
- org.jzy3d.chart.controllers.camera.AbstractCameraController
-
- org.jzy3d.chart.controllers.mouse.picking.NewtMousePickingController
-
- All Implemented Interfaces:
com.jogamp.newt.event.MouseListener
,com.jogamp.newt.event.NEWTEventListener
,EventListener
,ICameraMouseController
,IMousePickingController
- Direct Known Subclasses:
NewtMousePickingPan2dController
public class NewtMousePickingController extends AbstractCameraController implements com.jogamp.newt.event.MouseListener, IMousePickingController
-
-
Field Summary
Fields Modifier and Type Field Description protected Chart
chart
protected float
factor
protected com.jogamp.opengl.glu.GLU
glu
protected float
lastInc
protected Coord3d
mouse3d
protected PickingSupport
picking
protected Coord2d
prevMouse
protected Coord3d
prevMouse3d
protected AbstractCameraThreadController
threadController
-
Fields inherited from class org.jzy3d.chart.controllers.camera.AbstractCameraController
perf, updateViewDefault
-
Fields inherited from class org.jzy3d.chart.controllers.AbstractController
controllerListeners, targets
-
-
Constructor Summary
Constructors Constructor Description NewtMousePickingController()
NewtMousePickingController(Chart chart)
NewtMousePickingController(Chart chart, int brushSize)
NewtMousePickingController(Chart chart, int brushSize, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
PickingSupport
getPickingSupport()
boolean
handleSlaveThread(com.jogamp.newt.event.MouseEvent e)
void
mouseClicked(com.jogamp.newt.event.MouseEvent e)
void
mouseDragged(com.jogamp.newt.event.MouseEvent e)
void
mouseEntered(com.jogamp.newt.event.MouseEvent e)
void
mouseExited(com.jogamp.newt.event.MouseEvent e)
void
mouseMoved(com.jogamp.newt.event.MouseEvent e)
void
mousePressed(com.jogamp.newt.event.MouseEvent e)
void
mouseReleased(com.jogamp.newt.event.MouseEvent e)
void
mouseWheelMoved(com.jogamp.newt.event.MouseEvent e)
Compute zoomprotected void
pick(int x, int y)
protected void
pick(com.jogamp.newt.event.MouseEvent e)
void
register(Chart chart)
void
setPickingSupport(PickingSupport picking)
-
Methods inherited from class org.jzy3d.chart.controllers.camera.AbstractCameraController
addSlaveThreadController, addThread, getLODPerf, getSlaveThreadController, getThread, isUpdateViewDefault, removeSlaveThreadController, rotate, rotate, rotate, setLODPerf, setUpdateViewDefault, shift, shift, startThreadController, stopThreadController, zoomX, zoomX, zoomY, zoomY, zoomZ, zoomZ
-
Methods inherited from class org.jzy3d.chart.controllers.AbstractController
addControllerEventListener, fireControllerEvent, getChart, getCharts, removeControllerEventListener, unregister
-
-
-
-
Field Detail
-
factor
protected float factor
-
lastInc
protected float lastInc
-
mouse3d
protected Coord3d mouse3d
-
prevMouse3d
protected Coord3d prevMouse3d
-
picking
protected PickingSupport picking
-
glu
protected com.jogamp.opengl.glu.GLU glu
-
chart
protected Chart chart
-
prevMouse
protected Coord2d prevMouse
-
threadController
protected AbstractCameraThreadController threadController
-
-
Constructor Detail
-
NewtMousePickingController
public NewtMousePickingController()
-
NewtMousePickingController
public NewtMousePickingController(Chart chart)
-
NewtMousePickingController
public NewtMousePickingController(Chart chart, int brushSize)
-
NewtMousePickingController
public NewtMousePickingController(Chart chart, int brushSize, int bufferSize)
-
-
Method Detail
-
register
public void register(Chart chart)
- Overrides:
register
in classAbstractController
-
dispose
public void dispose()
- Overrides:
dispose
in classAbstractCameraController
-
getPickingSupport
public PickingSupport getPickingSupport()
- Specified by:
getPickingSupport
in interfaceIMousePickingController
-
setPickingSupport
public void setPickingSupport(PickingSupport picking)
- Specified by:
setPickingSupport
in interfaceIMousePickingController
-
mouseClicked
public void mouseClicked(com.jogamp.newt.event.MouseEvent e)
- Specified by:
mouseClicked
in interfacecom.jogamp.newt.event.MouseListener
-
mouseEntered
public void mouseEntered(com.jogamp.newt.event.MouseEvent e)
- Specified by:
mouseEntered
in interfacecom.jogamp.newt.event.MouseListener
-
mouseExited
public void mouseExited(com.jogamp.newt.event.MouseEvent e)
- Specified by:
mouseExited
in interfacecom.jogamp.newt.event.MouseListener
-
mouseReleased
public void mouseReleased(com.jogamp.newt.event.MouseEvent e)
- Specified by:
mouseReleased
in interfacecom.jogamp.newt.event.MouseListener
-
mouseDragged
public void mouseDragged(com.jogamp.newt.event.MouseEvent e)
- Specified by:
mouseDragged
in interfacecom.jogamp.newt.event.MouseListener
-
mouseWheelMoved
public void mouseWheelMoved(com.jogamp.newt.event.MouseEvent e)
Compute zoom- Specified by:
mouseWheelMoved
in interfacecom.jogamp.newt.event.MouseListener
-
mouseMoved
public void mouseMoved(com.jogamp.newt.event.MouseEvent e)
- Specified by:
mouseMoved
in interfacecom.jogamp.newt.event.MouseListener
-
mousePressed
public void mousePressed(com.jogamp.newt.event.MouseEvent e)
- Specified by:
mousePressed
in interfacecom.jogamp.newt.event.MouseListener
-
pick
protected void pick(com.jogamp.newt.event.MouseEvent e)
-
pick
protected void pick(int x, int y)
-
handleSlaveThread
public boolean handleSlaveThread(com.jogamp.newt.event.MouseEvent e)
-
-