Package net.runelite.client.ui.overlay
Class OverlayPanel
- java.lang.Object
-
- net.runelite.client.ui.overlay.Overlay
-
- net.runelite.client.ui.overlay.OverlayPanel
-
- All Implemented Interfaces:
LayoutableRenderableEntity
,RenderableEntity
- Direct Known Subclasses:
CameraOverlay
,ClueScrollOverlay
,InfoBoxOverlay
,LocationOverlay
public abstract class OverlayPanel extends Overlay
-
-
Field Summary
Fields Modifier and Type Field Description protected PanelComponent
panelComponent
-
Fields inherited from class net.runelite.client.ui.overlay.Overlay
PRIORITY_DEFAULT, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_LOW, PRIORITY_MED
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OverlayPanel()
protected
OverlayPanel(Plugin plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PanelComponent
getPanelComponent()
Color
getPreferredColor()
Preferred color used for panel component backgroundboolean
isClearChildren()
Enables/disables automatic clearing ofgetPanelComponent()
children after rendering (enabled by default)boolean
isDynamicFont()
Enables/disables automatic font size changes based on panel component size relative to default panel component size.Dimension
render(Graphics2D graphics)
void
setClearChildren(boolean clearChildren)
Enables/disables automatic clearing ofgetPanelComponent()
children after rendering (enabled by default)void
setDynamicFont(boolean dynamicFont)
Enables/disables automatic font size changes based on panel component size relative to default panel component size.void
setPreferredColor(Color preferredColor)
Preferred color used for panel component background-
Methods inherited from class net.runelite.client.ui.overlay.Overlay
addMenuEntry, addMenuEntry, drawAfterInterface, drawAfterLayer, drawAfterLayer, drawAfterLayer, getBounds, getDrawHooks, getLayer, getMenuEntries, getMinimumSize, getName, getParentBounds, getPlugin, getPosition, getPreferredLocation, getPreferredPosition, getPreferredSize, getPriority, isDragTargetable, isMovable, isResettable, isResizable, isSnappable, onDrag, onMouseOver, removeMenuEntry, revalidate, setBounds, setDragTargetable, setLayer, setMinimumSize, setMovable, setPosition, setPreferredLocation, setPreferredPosition, setPreferredSize, setPriority, setPriority, setResettable, setResizable, setSnappable
-
-
-
-
Field Detail
-
panelComponent
protected final PanelComponent panelComponent
-
-
Constructor Detail
-
OverlayPanel
protected OverlayPanel()
-
OverlayPanel
protected OverlayPanel(Plugin plugin)
-
-
Method Detail
-
render
public Dimension render(Graphics2D graphics)
-
getPanelComponent
public PanelComponent getPanelComponent()
-
isClearChildren
public boolean isClearChildren()
Enables/disables automatic clearing ofgetPanelComponent()
children after rendering (enabled by default)
-
isDynamicFont
public boolean isDynamicFont()
Enables/disables automatic font size changes based on panel component size relative to default panel component size.
-
getPreferredColor
public Color getPreferredColor()
Preferred color used for panel component background
-
setClearChildren
public void setClearChildren(boolean clearChildren)
Enables/disables automatic clearing ofgetPanelComponent()
children after rendering (enabled by default)
-
setDynamicFont
public void setDynamicFont(boolean dynamicFont)
Enables/disables automatic font size changes based on panel component size relative to default panel component size.
-
setPreferredColor
public void setPreferredColor(Color preferredColor)
Preferred color used for panel component background
-
-