Class AWTScatterMouseSelector

    • Field Detail

      • width

        protected int width
      • height

        protected int height
    • Constructor Detail

    • Method Detail

      • getPixelScale

        protected Coord2d getPixelScale()
      • 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 class AWTAbstractMouseSelector