org.jzy3d.chart.controllers.mouse.selection
Class SphereMouseSelector

java.lang.Object
  extended by org.jzy3d.chart.controllers.mouse.selection.AbstractMouseSelector
      extended by org.jzy3d.chart.controllers.mouse.selection.SphereMouseSelector
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class SphereMouseSelector
extends AbstractMouseSelector


Field Summary
protected  int height
           
protected  utils.Stack<algorithms.Point2f> hull
           
protected  List<Coord3d> projection
           
protected  SelectableSphere sphere
           
protected  int width
           
 
Fields inherited from class org.jzy3d.chart.controllers.mouse.selection.AbstractMouseSelector
chart, dragging, in, last, out, selectionRenderer
 
Constructor Summary
SphereMouseSelector(SelectableSphere scatter)
           
 
Method Summary
 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.AbstractMouseSelector
dispose, dragSelection, drawRectangle, initRenderer2d, matchRectangleSelection, matchRectangleSelection, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, register, releaseSelection, rollOver, startSelection, unregister, updateLast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sphere

protected SelectableSphere sphere

width

protected int width

height

protected int height

projection

protected List<Coord3d> projection

hull

protected utils.Stack<algorithms.Point2f> hull
Constructor Detail

SphereMouseSelector

public SphereMouseSelector(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 class AbstractMouseSelector

drawSelection

protected void drawSelection(Graphics2D g2d,
                             int width,
                             int height)
Description copied from class: AbstractMouseSelector
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 class AbstractMouseSelector
See Also:
AbstractViewport} and {@link Camera}

clearLastSelection

public void clearLastSelection()
Specified by:
clearLastSelection in class AbstractMouseSelector