Class GisFeatureRenderer

    • Constructor Detail

      • GisFeatureRenderer

        public GisFeatureRenderer()
    • Method Detail

      • getPreferredArea

        public abstract LatLonRect getPreferredArea()
        Preferred map area on opening for first time.
        Specified by:
        getPreferredArea in interface Renderer
        Returns:
        lat/lon bounding box that specifies preferred area.
      • getFeatures

        protected abstract List getFeatures()
      • getDataProjection

        protected abstract ProjectionImpl getDataProjection()
      • setColor

        public void setColor​(Color color)
        Description copied from interface: Renderer
        Tell the Renderer to use the given color.
        Specified by:
        setColor in interface Renderer
        Parameters:
        color - the Color to use.
      • setProjection

        public void setProjection​(ProjectionImpl project)
        Description copied from interface: Renderer
        Tell the Renderer to use the given projection from now on.
        Specified by:
        setProjection in interface Renderer
        Parameters:
        project - the projection to use.
      • draw

        public void draw​(Graphics2D g,
                         AffineTransform pixelAT)
        Draws all the features that are within the graphics clip rectangle, using the previously set displayProjection.
        Specified by:
        draw in interface Renderer
        Parameters:
        g - the Graphics2D context on which to draw
        pixelAT - transforms "Normalized Device" to Device coordinates