Package megamek.client.ui.widget.picmap
Class PMPicPolygonalArea
java.lang.Object
megamek.client.ui.widget.picmap.PMGenericHotArea
megamek.client.ui.widget.picmap.PMPicPolygonalArea
Simple polygonal area for PicMap component. Is represented by a set of "Active"/"Idle" images but active area will be
anyway defined by polygon.
-
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
ConstructorsConstructorDescriptionPMPicPolygonalArea(Polygon p, Image im) PMPicPolygonalArea(Polygon p, Image im, boolean highlight) Deprecated, for removal: This API element is subject to removal in a future version.PMPicPolygonalArea(Polygon p, Image idle, Image active) -
Method Summary
Modifier and TypeMethodDescriptionvoidDraws element into specified Graphics.Deprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidsetActiveImage(Image im) Deprecated, for removal: This API element is subject to removal in a future version.voidsetIdleImage(Image im) Deprecated, for removal: This API element is subject to removal in a future version.voidsetVisible(boolean v) Sets visibility of elementvoidtranslate(int x, int y) Translates element by x and y.Methods inherited from class megamek.client.ui.widget.picmap.PMGenericHotArea
addActionListener, getCursor, onMouseClick, onMouseDown, onMouseUp, removeActionListener, setCursor
-
Constructor Details
-
PMPicPolygonalArea
-
PMPicPolygonalArea
-
PMPicPolygonalArea
@Deprecated(since="0.51.0", forRemoval=true) public PMPicPolygonalArea(Polygon p, Image im, boolean highlight) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setIdleImage
Deprecated, for removal: This API element is subject to removal in a future version. -
getIdleImage
-
getActiveImage
Deprecated, for removal: This API element is subject to removal in a future version. -
setActiveImage
Deprecated, for removal: This API element is subject to removal in a future version. -
translate
public void translate(int x, int y) Description copied from interface:PMElementTranslates element by x and y. -
getBounds
- Returns:
- bounding box of element.
-
drawInto
Description copied from interface:PMElementDraws element into specified Graphics. -
setVisible
public void setVisible(boolean v) Description copied from interface:PMElementSets visibility of element -
getAreaShape
-
onMouseOver
- Specified by:
onMouseOverin interfacePMHotArea- Overrides:
onMouseOverin classPMGenericHotArea
-
onMouseExit
- Specified by:
onMouseExitin interfacePMHotArea- Overrides:
onMouseExitin classPMGenericHotArea
-