public class MapScrollSkinEvent extends java.lang.Object implements SkinEvent
SkinEvent
that executes a CommandList
whenever the map
scroll protocol command is received.Modifier and Type | Field and Description |
---|---|
private CommandList |
commandList
The
CommandList to execute. |
private MapScrollListener |
mapscrollListener
The
MapScrollListener attached to mapUpdaterState . |
private MapUpdaterState |
mapUpdaterState
The
MapUpdaterState to attach to. |
Constructor and Description |
---|
MapScrollSkinEvent(CommandList commandList,
MapUpdaterState mapUpdaterState)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Will be called when the skin is disposed.
|
@NotNull private final CommandList commandList
CommandList
to execute.@NotNull private final MapScrollListener mapscrollListener
MapScrollListener
attached to mapUpdaterState
.@NotNull private final MapUpdaterState mapUpdaterState
MapUpdaterState
to attach to.public MapScrollSkinEvent(@NotNull CommandList commandList, @NotNull MapUpdaterState mapUpdaterState)
commandList
- the command list to executemapUpdaterState
- the map updater state to attach to