net.sf.freecol.client.gui
Class TerrainCursor

java.lang.Object
  extended by net.sf.freecol.client.gui.TerrainCursor
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class TerrainCursor
extends java.lang.Object
implements java.awt.event.ActionListener


Field Summary
static int OFF
           
static int ON
           
 
Constructor Summary
TerrainCursor()
          Creates a new Cursor instance.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent timerEvent)
           
 void addActionListener(java.awt.event.ActionListener listener)
           
 void fireActionEvent(java.awt.event.ActionEvent event)
           
 int getCanvasX()
           
 int getCanvasY()
           
 Tile getTile()
           
 boolean isActive()
          Returns whether this TerrainCursor is active.
 void removeActionListener(java.awt.event.ActionListener listener)
           
 void setActive(boolean newState)
          Sets the active state of the TerrainCursor.
 void setCanvasPos(int x, int y)
           
 void setTile(Tile tile)
           
 void startBlinking()
           
 void stopBlinking()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFF

public static final int OFF
See Also:
Constant Field Values

ON

public static final int ON
See Also:
Constant Field Values
Constructor Detail

TerrainCursor

public TerrainCursor()
Creates a new Cursor instance.

Method Detail

isActive

public boolean isActive()
Returns whether this TerrainCursor is active.

Returns:
a boolean value

setActive

public void setActive(boolean newState)
Sets the active state of the TerrainCursor.

Parameters:
newState - a boolean value

startBlinking

public void startBlinking()

stopBlinking

public void stopBlinking()

setTile

public void setTile(Tile tile)

getTile

public Tile getTile()

setCanvasPos

public void setCanvasPos(int x,
                         int y)

getCanvasX

public int getCanvasX()

getCanvasY

public int getCanvasY()

addActionListener

public void addActionListener(java.awt.event.ActionListener listener)

removeActionListener

public void removeActionListener(java.awt.event.ActionListener listener)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent timerEvent)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

fireActionEvent

public void fireActionEvent(java.awt.event.ActionEvent event)