Package net.sf.gridarta.gui.map.mapview
Class ErroneousMapSquares<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.map.mapview.ErroneousMapSquares<G,A,R>
-
public class ErroneousMapSquares<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectTracks aMapModelfor changed erroneous map squares and updates aMapGridand anAbstractMapRendereraccordingly.
-
-
Constructor Summary
Constructors Constructor Description ErroneousMapSquares(@NotNull MapModel<G,A,R> mapModel, @NotNull MapGrid mapGrid, @NotNull AbstractMapRenderer<G,A,R> renderer)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseNotify()Must be called when this instance is not used anymore.protected voiderrorsChanged(@NotNull ErrorCollector<G,A,R> errors)Updates the erroneous map squares.
-
-
-
Constructor Detail
-
ErroneousMapSquares
public ErroneousMapSquares(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull MapGrid mapGrid, @NotNull @NotNull AbstractMapRenderer<G,A,R> renderer)Creates a new instance.- Parameters:
mapModel- the map model to trackmapGrid- the map grid to markrenderer- the renderer to notify
-
-
Method Detail
-
closeNotify
public void closeNotify()
Must be called when this instance is not used anymore. It un-registers all listeners.
-
errorsChanged
protected void errorsChanged(@NotNull @NotNull ErrorCollector<G,A,R> errors)Updates the erroneous map squares.- Parameters:
errors- the errors to display
-
-