Class ContourPlot.CompleteRenderer

    • Constructor Detail

      • CompleteRenderer

        public CompleteRenderer()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Description copied from interface: ContourPlot.Renderer
        Whether this renderer is enabled or not. By default a renderer is enabled and will render upon #render(int, int, int, int) or #renderSVG(org.w3c.dom.Document, org.w3c.dom.Element, int, int). When disabled those methods return right away and will not render anything.
        Specified by:
        isEnabled in interface ContourPlot.Renderer
        Returns:
        true when active
      • 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.
        Specified by:
        renderFallback in interface ContourPlot.Renderer
        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
      • renderPDF

        public void renderPDF​(org.apache.pdfbox.pdmodel.PDDocument doc,
                              org.apache.pdfbox.pdmodel.PDPage page,
                              int x,
                              int y,
                              int w,
                              int h)
        Description copied from interface: ContourPlot.PDFRenderer
        Renders this PDFRenderers contents, that is creating pdf elements and appending them to the specified page within the corresponding document.
        Specified by:
        renderPDF in interface ContourPlot.PDFRenderer
        Parameters:
        doc - the PDF document holding the page
        page - page in pdf doc to which elements are to be appended
        x - x coordinate of the current viewport
        y - y coordinate of the current viewport
        w - width of the current viewport
        h - height of the current viewport
      • setView

        public void setView​(java.awt.geom.Rectangle2D rect)
        Sets the view matrix for each of the renderers
        Specified by:
        setView in interface ContourPlot.AdaptableView
        Parameters:
        rect - the view rectangle (can be null)