Class SmoothingRenderer


  • public class SmoothingRenderer
    extends java.lang.Object
    Renderer for painting smoothed faces into map views.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paintSmooth​(@NotNull java.awt.Graphics graphics, int x, int y, int px, int py, int layer, @NotNull CfMap map, int tileSize)
      Draw the smoothing information at given position of map, for a given limit smoothlevel, at a given layer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SmoothingRenderer

        protected SmoothingRenderer​(@NotNull
                                    @NotNull SmoothFaces smoothFaces,
                                    @NotNull
                                    @NotNull FacesProvider facesProvider)
        Creates a new instance.
        Parameters:
        smoothFaces - the smooth faces to use
        facesProvider - the face provider for looking up faces
    • Method Detail

      • paintSmooth

        public void paintSmooth​(@NotNull
                                @NotNull java.awt.Graphics graphics,
                                int x,
                                int y,
                                int px,
                                int py,
                                int layer,
                                @NotNull
                                @NotNull CfMap map,
                                int tileSize)
        Draw the smoothing information at given position of map, for a given limit smoothlevel, at a given layer. This operation may be recursive, if all layer above current are to be drawn too.
        Parameters:
        graphics - where to draw (graphics)
        x - the x-coordinate of the map square to draw, in map coordinates
        y - the y-coordinate of the map square to draw, in map coordinates
        px - the x offset for painting
        py - the y offset painting
        layer - the layer to paint
        map - the rendered map
        tileSize - the size of one tile in pixel