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 RectanglegetBounds()Dimensionrender(Graphics2D graphics)voidsetPreferredLocation(Point preferredLocation)voidsetPreferredSize(Dimension dimension)
-
-
-
Constructor Detail
-
ImageComponent
public ImageComponent(BufferedImage image)
-
-
Method Detail
-
render
public Dimension render(Graphics2D graphics)
- Specified by:
renderin interfaceRenderableEntity
-
setPreferredSize
public void setPreferredSize(Dimension dimension)
- Specified by:
setPreferredSizein interfaceLayoutableRenderableEntity
-
setPreferredLocation
public void setPreferredLocation(Point preferredLocation)
- Specified by:
setPreferredLocationin interfaceLayoutableRenderableEntity
-
getBounds
public Rectangle getBounds()
- Specified by:
getBoundsin interfaceLayoutableRenderableEntity
-
-