Class AWTAbstractMouseSelector

    • Constructor Detail

      • AWTAbstractMouseSelector

        public AWTAbstractMouseSelector()
    • Method Detail

      • dispose

        public void dispose()
      • register

        public void register​(Chart chart)
      • unregister

        public void unregister()
      • processSelection

        protected abstract void processSelection​(Scene scene,
                                                 View view,
                                                 int width,
                                                 int height)
      • drawSelection

        protected abstract void drawSelection​(Graphics2D g,
                                              int width,
                                              int height)
        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);
      • clearLastSelection

        public abstract void clearLastSelection()
      • matchRectangleSelection

        protected boolean matchRectangleSelection​(IntegerCoord2d in,
                                                  IntegerCoord2d out,
                                                  float px,
                                                  float py,
                                                  int width,
                                                  int height)
        Parameters:
        in - The mouse selection start point
        out - The mouse selection end point
        px - A projected point x value
        py - A projected point y value
        width - The canvas dimension
        height - The canvas dimension
        Returns:
        true if the point (px,py) is inside the (in,out) mouse selection of a canvas having dimensions (width, height)
      • startSelection

        protected void startSelection​(MouseEvent e)
      • dragSelection

        protected void dragSelection​(MouseEvent e)
      • releaseSelection

        protected void releaseSelection​(MouseEvent e)
      • rollOver

        protected void rollOver​(MouseEvent e)
      • updateLast

        protected void updateLast()
      • mouseWheelMoved

        public void mouseWheelMoved​(MouseEvent e)