megamek.client.ui.swing.widget
Class PMGenericHotArea

java.lang.Object
  extended by megamek.client.ui.swing.widget.PMGenericHotArea
All Implemented Interfaces:
PMElement, PMHotArea
Direct Known Subclasses:
PMPicPolygonalArea

public abstract class PMGenericHotArea
extends java.lang.Object
implements PMHotArea

Abstract class which defines common functionality for all hot areas such as event handling and dispatching.


Field Summary
 
Fields inherited from interface megamek.client.ui.swing.widget.PMHotArea
MOUSE_CLICK_LEFT, MOUSE_CLICK_RIGHT, MOUSE_DOUBLE_CLICK, MOUSE_DOWN, MOUSE_EXIT, MOUSE_OVER, MOUSE_UP
 
Constructor Summary
PMGenericHotArea()
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
           
 java.awt.Cursor getCursor()
           
 void onMouseClick(java.awt.event.MouseEvent e)
           
 void onMouseDown(java.awt.event.MouseEvent e)
           
 void onMouseExit(java.awt.event.MouseEvent e)
           
 void onMouseOver(java.awt.event.MouseEvent e)
           
 void onMouseUp(java.awt.event.MouseEvent e)
           
 void removeActionListener(java.awt.event.ActionListener l)
           
 void setCursor(java.awt.Cursor c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface megamek.client.ui.swing.widget.PMHotArea
getAreaShape
 
Methods inherited from interface megamek.client.ui.swing.widget.PMElement
drawInto, getBounds, setVisible, translate
 

Constructor Detail

PMGenericHotArea

public PMGenericHotArea()
Method Detail

getCursor

public java.awt.Cursor getCursor()
Specified by:
getCursor in interface PMHotArea

setCursor

public void setCursor(java.awt.Cursor c)
Specified by:
setCursor in interface PMHotArea

addActionListener

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

removeActionListener

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

onMouseClick

public void onMouseClick(java.awt.event.MouseEvent e)
Specified by:
onMouseClick in interface PMHotArea

onMouseOver

public void onMouseOver(java.awt.event.MouseEvent e)
Specified by:
onMouseOver in interface PMHotArea

onMouseExit

public void onMouseExit(java.awt.event.MouseEvent e)
Specified by:
onMouseExit in interface PMHotArea

onMouseDown

public void onMouseDown(java.awt.event.MouseEvent e)
Specified by:
onMouseDown in interface PMHotArea

onMouseUp

public void onMouseUp(java.awt.event.MouseEvent e)
Specified by:
onMouseUp in interface PMHotArea