Class ContourPlot.LinesRenderer

    • Constructor Detail

      • LinesRenderer

        public LinesRenderer()
    • Method Detail

      • renderFallback

        public void renderFallback​(java.awt.Graphics2D g,
                                   java.awt.Graphics2D p,
                                   int w,
                                   int h)
        Description copied from interface: ContourPlot.Renderer
        Renders this ContourPlot.Renderer's 'scene'. This is the fallback path in case OpenGL based rendering through #render(int, int, int, int) is not available.
        Parameters:
        g - main graphics object for drawing onto the framebuffer
        p - graphics object for drawing onto the picking framebuffer (invisible but used for picking)
        w - width of the current viewport in pixels
        h - height of the current viewport in pixels
      • renderFallbackLinesCT

        private void renderFallbackLinesCT​(java.awt.Graphics2D g,
                                           java.awt.Graphics2D p,
                                           ContourPlot.Lines lines,
                                           double translateX,
                                           double translateY,
                                           double scaleX,
                                           double scaleY,
                                           java.awt.geom.Rectangle2D viewportRect,
                                           float thickness)
      • renderFallbackLinesVT

        private void renderFallbackLinesVT​(java.awt.Graphics2D g,
                                           java.awt.Graphics2D p,
                                           ContourPlot.Lines lines,
                                           double translateX,
                                           double translateY,
                                           double scaleX,
                                           double scaleY,
                                           java.awt.geom.Rectangle2D viewportRect,
                                           float[][] polygonCoords)
      • findStrokeInterval

        protected double[] findStrokeInterval​(double current,
                                              double strokeLen,
                                              short pattern)
      • transferBits

        protected int[] transferBits​(short bits,
                                     int[] target)
      • strokePattern2dashPattern

        protected float[] strokePattern2dashPattern​(short pattern,
                                                    float strokeLen)