Class OffBoardTargetOverlay
java.lang.Object
megamek.client.ui.clientGUI.boardview.overlay.OffBoardTargetOverlay
- All Implemented Interfaces:
- IDisplayable
This class handles the display and logic for the off board targeting overlay.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidDraw this IDisplayable to the Graphics graph, which is theBoardViewgraphics.booleanReturns true when the mouse position point is considered "within" this IDisplayable.booleanvoidSets a reference to a TargetingPhaseDisplay.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.client.ui.IDisplayableisBeingDragged, isDragged, isMouseOver, isSliding, setIdleTime, slide
- 
Constructor Details- 
OffBoardTargetOverlay
 
- 
- 
Method Details- 
setTargetingPhaseDisplaySets a reference to a TargetingPhaseDisplay. Used to communicate a generated attack to it.
- 
isHitDescription copied from interface:IDisplayableReturns true when the mouse position point is considered "within" this IDisplayable. This is called when a mouse button is pressed. The default for this method will always return false.- Specified by:
- isHitin interface- IDisplayable
 
- 
isReleasedpublic boolean isReleased()- Specified by:
- isReleasedin interface- IDisplayable
 
- 
drawDescription copied from interface:IDisplayableDraw this IDisplayable to the Graphics graph, which is theBoardViewgraphics. The currently visible part of theBoardViewis given by the Rectangle rect, so the upper left corner of the visibleBoardViewis rect.x, rect.y.- Specified by:
- drawin interface- IDisplayable
 
 
-