com.realtime.crossfire.jxclient.skin.events
Class MapScrollSkinEvent

java.lang.Object
  extended by com.realtime.crossfire.jxclient.skin.events.MapScrollSkinEvent
All Implemented Interfaces:
SkinEvent

public class MapScrollSkinEvent
extends java.lang.Object
implements SkinEvent

A SkinEvent that executes a CommandList whenever the map scroll protocol command is received.


Field Summary
private  CommandList commandList
          The CommandList to execute.
private  MapScrollListener mapscrollListener
          The MapScrollListener attached to mapUpdater.
private  CfMapUpdater mapUpdater
          The CfMapUpdater to attach to.
 
Constructor Summary
MapScrollSkinEvent(CommandList commandList, CfMapUpdater mapUpdater)
          Creates a new instance.
 
Method Summary
 void dispose()
          Will be called when the skin is disposed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandList

@NotNull
private final CommandList commandList
The CommandList to execute.


mapscrollListener

@NotNull
private final MapScrollListener mapscrollListener
The MapScrollListener attached to mapUpdater.


mapUpdater

@NotNull
private final CfMapUpdater mapUpdater
The CfMapUpdater to attach to.

Constructor Detail

MapScrollSkinEvent

public MapScrollSkinEvent(@NotNull
                          CommandList commandList,
                          @NotNull
                          CfMapUpdater mapUpdater)
Creates a new instance.

Parameters:
commandList - the command list to execute
mapUpdater - the map updater to attach to
Method Detail

dispose

public void dispose()
Will be called when the skin is disposed. Should release resources.

Specified by:
dispose in interface SkinEvent