Package games.stendhal.client.gui.styled
Class PixmapBorder
java.lang.Object
games.stendhal.client.gui.styled.PixmapBorder
- All Implemented Interfaces:
Border
A
Border that draws raised or lowered borders
based on a template image.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets(Component component) booleanvoidpaintBorder(Component component, Graphics graphics, int x, int y, int width, int height)
-
Constructor Details
-
PixmapBorder
Create a newPixmapBorder.- Parameters:
template-Spriteto be used as the base image for drawing the borderraised- iftrue, the border will appear raised, otherwise it will look sunken
-
-
Method Details
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaquein interfaceBorder
-
paintBorder
public void paintBorder(Component component, Graphics graphics, int x, int y, int width, int height) - Specified by:
paintBorderin interfaceBorder
-