Class AWTMousePickingController
- java.lang.Object
-
- org.jzy3d.chart.controllers.AbstractController
-
- org.jzy3d.chart.controllers.camera.AbstractCameraController
-
- org.jzy3d.chart.controllers.mouse.picking.AWTMousePickingController
-
- All Implemented Interfaces:
MouseListener
,MouseWheelListener
,EventListener
,ICameraMouseController
,IMousePickingController
- Direct Known Subclasses:
AWTMousePickingPan2dController
public class AWTMousePickingController extends AbstractCameraController implements MouseListener, MouseWheelListener, IMousePickingController
-
-
Field Summary
Fields Modifier and Type Field Description protected Chart
chart
protected float
factor
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 AWTMousePickingController()
AWTMousePickingController(Chart chart)
AWTMousePickingController(Chart chart, int brushSize)
AWTMousePickingController(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(MouseEvent e)
void
mouseClicked(MouseEvent e)
void
mouseDragged(MouseEvent e)
void
mouseEntered(MouseEvent e)
void
mouseExited(MouseEvent e)
void
mouseMoved(MouseEvent e)
void
mousePressed(MouseEvent e)
void
mouseReleased(MouseEvent e)
void
mouseWheelMoved(MouseWheelEvent e)
Compute zoomvoid
pick(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
-
chart
protected Chart chart
-
prevMouse
protected Coord2d prevMouse
-
threadController
protected AbstractCameraThreadController threadController
-
-
Constructor Detail
-
AWTMousePickingController
public AWTMousePickingController()
-
AWTMousePickingController
public AWTMousePickingController(Chart chart)
-
AWTMousePickingController
public AWTMousePickingController(Chart chart, int brushSize)
-
AWTMousePickingController
public AWTMousePickingController(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(MouseEvent e)
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseDragged
public void mouseDragged(MouseEvent e)
-
mouseWheelMoved
public void mouseWheelMoved(MouseWheelEvent e)
Compute zoom- Specified by:
mouseWheelMoved
in interfaceMouseWheelListener
-
mouseMoved
public void mouseMoved(MouseEvent e)
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interfaceMouseListener
-
pick
public void pick(MouseEvent e)
-
handleSlaveThread
public boolean handleSlaveThread(MouseEvent e)
-
-