public class TerrainCursor
extends java.lang.Object
implements java.awt.event.ActionListener
Modifier and Type | Field and Description |
---|---|
private boolean |
active |
private javax.swing.Timer |
blinkTimer |
private javax.swing.event.EventListenerList |
listenerList |
static int |
OFF |
static int |
ON |
Constructor and Description |
---|
TerrainCursor()
Creates a new
TerrainCursor instance. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae) |
void |
addActionListener(java.awt.event.ActionListener listener) |
void |
fireActionEvent(java.awt.event.ActionEvent ae) |
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 |
startBlinking() |
void |
stopBlinking() |
public static final int OFF
public static final int ON
private final javax.swing.Timer blinkTimer
private boolean active
private final javax.swing.event.EventListenerList listenerList
public boolean isActive()
boolean
valuepublic void setActive(boolean newState)
newState
- a boolean
valuepublic void startBlinking()
public void stopBlinking()
public void addActionListener(java.awt.event.ActionListener listener)
public void removeActionListener(java.awt.event.ActionListener listener)
public void fireActionEvent(java.awt.event.ActionEvent ae)
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener