Interface Renderer


  • public interface Renderer
    Base interface for renderer. This is very much work in progress. Note: this interface will changes in future versions.
    Author:
    James Macgill
    • Method Detail

      • render

        void render​(FeatureCollection<? extends FeatureType,​? extends Feature> fc,
                    Envelope viewport,
                    Style style)
        Renders the provided features using the specified style. The features should fill the viewport but may well extend beyond it. Features should be cropped (if appropriate) to the specified viewport.
        Parameters:
        fc - The feature collection to render
        viewport - The visible extent to be rendered
        style - The style definition to apply to each feature
      • isInteractive

        boolean isInteractive()
        Getter for property interactive.
        Returns:
        Value of property interactive.
      • setInteractive

        void setInteractive​(boolean interactive)
        Setter for property interactive.
        Parameters:
        interactive - New value of property interactive.
      • setOutput

        void setOutput​(Graphics g,
                       Rectangle r)
        sets the output graphics for the renderer and the size of the graphic.