Class ImageComponent
- java.lang.Object
-
- net.runelite.client.ui.overlay.components.ImageComponent
-
- All Implemented Interfaces:
LayoutableRenderableEntity
,RenderableEntity
public class ImageComponent extends Object implements LayoutableRenderableEntity
-
-
Constructor Summary
Constructors Constructor Description ImageComponent(BufferedImage image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getBounds()
Dimension
render(Graphics2D graphics)
void
setPreferredLocation(Point preferredLocation)
void
setPreferredSize(Dimension dimension)
-
-
-
Constructor Detail
-
ImageComponent
public ImageComponent(BufferedImage image)
-
-
Method Detail
-
render
public Dimension render(Graphics2D graphics)
- Specified by:
render
in interfaceRenderableEntity
-
setPreferredSize
public void setPreferredSize(Dimension dimension)
- Specified by:
setPreferredSize
in interfaceLayoutableRenderableEntity
-
setPreferredLocation
public void setPreferredLocation(Point preferredLocation)
- Specified by:
setPreferredLocation
in interfaceLayoutableRenderableEntity
-
getBounds
public Rectangle getBounds()
- Specified by:
getBounds
in interfaceLayoutableRenderableEntity
-
-