megamek.client.ui.AWT.widget
Class PMSimplePolygonArea
java.lang.Object
megamek.client.ui.AWT.widget.PMSimplePolygonArea
- All Implemented Interfaces:
- PMElement, PMHotArea
public class PMSimplePolygonArea
- extends java.lang.Object
- implements PMHotArea
|
Constructor Summary |
PMSimplePolygonArea(java.awt.Polygon p)
|
PMSimplePolygonArea(java.awt.Polygon p,
java.awt.Color backColor,
java.awt.Color brdColor)
|
PMSimplePolygonArea(java.awt.Polygon p,
java.awt.Color backColor,
java.awt.Color brdColor,
java.awt.Color hiBrdColor,
boolean highlight)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
backColor
public java.awt.Color backColor
normalBorderColor
public java.awt.Color normalBorderColor
highlightBorderColor
public java.awt.Color highlightBorderColor
PMSimplePolygonArea
public PMSimplePolygonArea(java.awt.Polygon p,
java.awt.Color backColor,
java.awt.Color brdColor,
java.awt.Color hiBrdColor,
boolean highlight)
PMSimplePolygonArea
public PMSimplePolygonArea(java.awt.Polygon p,
java.awt.Color backColor,
java.awt.Color brdColor)
PMSimplePolygonArea
public PMSimplePolygonArea(java.awt.Polygon p)
translate
public void translate(int x,
int y)
- Description copied from interface:
PMElement
- Translates element by x and y.
- Specified by:
translate in interface PMElement
getBounds
public java.awt.Rectangle getBounds()
- Description copied from interface:
PMElement
- Return bounding box of element.
- Specified by:
getBounds in interface PMElement
drawInto
public void drawInto(java.awt.Graphics g)
- Description copied from interface:
PMElement
- Draws element into specifyed Graphics.
- Specified by:
drawInto in interface PMElement
setVisible
public void setVisible(boolean v)
- Description copied from interface:
PMElement
- Sets visibility of element
- Specified by:
setVisible in interface PMElement
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
getAreaShape
public java.awt.Shape getAreaShape()
- Specified by:
getAreaShape in interface PMHotArea
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
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