Class AWTSphereMouseSelector
- java.lang.Object
-
- org.jzy3d.chart.controllers.mouse.selection.AWTAbstractMouseSelector
-
- org.jzy3d.chart.controllers.mouse.selection.AWTSphereMouseSelector
-
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
public class AWTSphereMouseSelector extends AWTAbstractMouseSelector
-
-
Field Summary
Fields Modifier and Type Field Description protected int
height
protected Deque<Coord2d>
hull
protected List<Coord3d>
projection
protected SelectableSphere
sphere
protected int
width
-
Fields inherited from class org.jzy3d.chart.controllers.mouse.selection.AWTAbstractMouseSelector
canvas, chart, dragging, in, last, out, selectionRenderer
-
-
Constructor Summary
Constructors Constructor Description AWTSphereMouseSelector(SelectableSphere scatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearLastSelection()
protected void
drawSelection(Graphics2D g2d, int width, int height)
Drawing occurs in the selection renderer which as the dimension of the GL2 scene viewport.protected void
processSelection(Scene scene, View view, int width, int height)
Make projection and match points belonging to selection.-
Methods inherited from class org.jzy3d.chart.controllers.mouse.selection.AWTAbstractMouseSelector
dispose, dragSelection, drawRectangle, initRenderer2d, matchRectangleSelection, matchRectangleSelection, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, register, releaseSelection, rollOver, startSelection, unregister, updateLast, x, xy, y
-
-
-
-
Field Detail
-
sphere
protected SelectableSphere sphere
-
width
protected int width
-
height
protected int height
-
-
Constructor Detail
-
AWTSphereMouseSelector
public AWTSphereMouseSelector(SelectableSphere scatter)
-
-
Method Detail
-
processSelection
protected void processSelection(Scene scene, View view, int width, int height)
Make projection and match points belonging to selection.- Specified by:
processSelection
in classAWTAbstractMouseSelector
-
drawSelection
protected void drawSelection(Graphics2D g2d, int width, int height)
Description copied from class:AWTAbstractMouseSelector
Drawing occurs in the selection renderer which as the dimension of the GL2 scene viewport. In other words, one should not expect to draw on the entire canvas if the GL2 scene viewport only covers a slice of the screen. As an example, the following piece of code will draw a border around the GL2 scene: g2d.drawRect(1, 1, chart.getCanvas().getRendererWidth()-2, chart.getCanvas().getRendererHeight()-2);- Specified by:
drawSelection
in classAWTAbstractMouseSelector
-
clearLastSelection
public void clearLastSelection()
- Specified by:
clearLastSelection
in classAWTAbstractMouseSelector
-
-