Class UnitOverviewOverlay
java.lang.Object
megamek.client.ui.clientGUI.boardview.overlay.UnitOverviewOverlay
- All Implemented Interfaces:
IDisplayable,IPreferenceChangeListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum length of the icon name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringadjustString(String s, FontMetrics metrics) voidDraw this IDisplayable to the Graphics graph, which is theBoardViewgraphics.protected StringgetIconName(Entity e, FontMetrics metrics) static intbooleanReturns true when this IDisplayable is dragged or resized using mouse dragging.booleanReturns true when the mouse position point is considered "within" this IDisplayable.booleanvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.client.ui.IDisplayable
isBeingDragged, isMouseOver, isSliding, setIdleTime, slide
-
Field Details
-
ICON_NAME_MAX_LENGTH
public static final int ICON_NAME_MAX_LENGTHThe maximum length of the icon name.- See Also:
-
-
Constructor Details
-
UnitOverviewOverlay
-
-
Method Details
-
getUIWidth
public static int getUIWidth() -
draw
Description 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 interfaceIDisplayable
-
isHit
Description 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 interfaceIDisplayable
-
isDragged
Description copied from interface:IDisplayableReturns true when this IDisplayable is dragged or resized using mouse dragging. This will prevent theBoardViewfrom reacting to this mouse action. The default for this method will always return false.- Specified by:
isDraggedin interfaceIDisplayable
-
isReleased
public boolean isReleased()- Specified by:
isReleasedin interfaceIDisplayable
-
getIconName
-
adjustString
-
preferenceChange
- Specified by:
preferenceChangein interfaceIPreferenceChangeListener
-