Package megamek.client.ui.widget.picmap
Class PMPicArea
java.lang.Object
megamek.client.ui.widget.picmap.PMPicArea
Simple rectangle hot are for PicMap component. Show single image when idle and "hoghlite" image when mouse is over
this area.
-
Field Summary
Fields inherited from interface megamek.client.ui.widget.picmap.PMHotArea
MOUSE_CLICK_LEFT, MOUSE_CLICK_RIGHT, MOUSE_DOUBLE_CLICK, MOUSE_DOWN, MOUSE_EXIT, MOUSE_OVER, MOUSE_UP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidDraws element into specified Graphics.voidvoidvoidvoidvoidvoidvoidvoidsetIdleImage(Image idle) voidsetVisible(boolean v) Sets visibility of elementvoidtranslate(int x, int y) Translates element by x and y.
-
Constructor Details
-
PMPicArea
-
PMPicArea
-
-
Method Details
-
translate
public void translate(int x, int y) Description copied from interface:PMElementTranslates element by x and y. -
getBounds
-
drawInto
Description copied from interface:PMElementDraws element into specified Graphics. -
setIdleImage
-
setVisible
public void setVisible(boolean v) Description copied from interface:PMElementSets visibility of element- Specified by:
setVisiblein interfacePMElement
-
addActionListener
-
removeActionListener
-
getAreaShape
- Specified by:
getAreaShapein interfacePMHotArea
-
getCursor
-
setCursor
-
onMouseClick
- Specified by:
onMouseClickin interfacePMHotArea
-
onMouseOver
- Specified by:
onMouseOverin interfacePMHotArea
-
onMouseExit
- Specified by:
onMouseExitin interfacePMHotArea
-
onMouseDown
- Specified by:
onMouseDownin interfacePMHotArea
-
onMouseUp
-