Class SmoothingRenderer
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.map.SmoothingRenderer
-
public class SmoothingRenderer extends java.lang.ObjectRenderer for painting smoothed faces into map views.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSmoothingRenderer(@NotNull SmoothFaces smoothFaces, @NotNull FacesProvider facesProvider)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaintSmooth(@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.
-
-
-
Constructor Detail
-
SmoothingRenderer
protected SmoothingRenderer(@NotNull @NotNull SmoothFaces smoothFaces, @NotNull @NotNull FacesProvider facesProvider)Creates a new instance.- Parameters:
smoothFaces- the smooth faces to usefacesProvider- 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 coordinatesy- the y-coordinate of the map square to draw, in map coordinatespx- the x offset for paintingpy- the y offset paintinglayer- the layer to paintmap- the rendered maptileSize- the size of one tile in pixel
-
-