Class InfoBoxOverlay
- java.lang.Object
-
- net.runelite.client.ui.overlay.Overlay
-
- net.runelite.client.ui.overlay.OverlayPanel
-
- net.runelite.client.ui.overlay.infobox.InfoBoxOverlay
-
- All Implemented Interfaces:
LayoutableRenderableEntity
,RenderableEntity
public class InfoBoxOverlay extends OverlayPanel
-
-
Field Summary
-
Fields inherited from class net.runelite.client.ui.overlay.OverlayPanel
panelComponent
-
Fields inherited from class net.runelite.client.ui.overlay.Overlay
PRIORITY_DEFAULT, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_LOW, PRIORITY_MED
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<InfoBox>
getInfoBoxes()
List<OverlayMenuEntry>
getMenuEntries()
String
getName()
Overlay name, used for saving the overlay, needs to be uniqueboolean
onDrag(Overlay source)
Called when an overlay is dragged onto this, if dragTargetable is true.void
onMenuOptionClicked(MenuOptionClicked menuOptionClicked)
Dimension
render(Graphics2D graphics)
-
Methods inherited from class net.runelite.client.ui.overlay.OverlayPanel
getPanelComponent, getPreferredColor, isClearChildren, isDynamicFont, setClearChildren, setDynamicFont, setPreferredColor
-
Methods inherited from class net.runelite.client.ui.overlay.Overlay
addMenuEntry, addMenuEntry, drawAfterInterface, drawAfterLayer, drawAfterLayer, drawAfterLayer, getBounds, getDrawHooks, getLayer, getMinimumSize, getParentBounds, getPlugin, getPosition, getPreferredLocation, getPreferredPosition, getPreferredSize, getPriority, isDragTargetable, isMovable, isResettable, isResizable, isSnappable, onMouseOver, removeMenuEntry, revalidate, setBounds, setDragTargetable, setLayer, setMinimumSize, setMovable, setPosition, setPreferredLocation, setPreferredPosition, setPreferredSize, setPriority, setPriority, setResettable, setResizable, setSnappable
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from class:Overlay
Overlay name, used for saving the overlay, needs to be unique
-
render
public Dimension render(Graphics2D graphics)
- Specified by:
render
in interfaceRenderableEntity
- Overrides:
render
in classOverlayPanel
-
getMenuEntries
public List<OverlayMenuEntry> getMenuEntries()
- Overrides:
getMenuEntries
in classOverlay
-
onMenuOptionClicked
@Subscribe public void onMenuOptionClicked(MenuOptionClicked menuOptionClicked)
-
onDrag
public boolean onDrag(Overlay source)
Description copied from class:Overlay
Called when an overlay is dragged onto this, if dragTargetable is true. Return true to consume the mouse event and prevent the other overlay from being moved
-
-