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
-
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets(Component component)
boolean
void
paintBorder(Component component, Graphics graphics, int x, int y, int width, int height)
-
Constructor Details
-
PixmapBorder
Create a newPixmapBorder
.- Parameters:
template
-Sprite
to 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:
getBorderInsets
in interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaque
in interfaceBorder
-
paintBorder
public void paintBorder(Component component, Graphics graphics, int x, int y, int width, int height)- Specified by:
paintBorder
in interfaceBorder
-