public static class BasicBorders.RolloverButtonBorder extends BasicBorders.ButtonBorder
darkShadow, highlight, lightHighlight, shadow
Constructor and Description |
---|
BasicBorders.RolloverButtonBorder(Color shadow,
Color darkShadow,
Color highlight,
Color lightHighlight)
Constructs a new border for drawing a roll-over button
in the Basic look and feel.
|
Modifier and Type | Method and Description |
---|---|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border around a rollover button.
|
getBorderInsets, getBorderInsets
getInteriorRectangle, getInteriorRectangle, isBorderOpaque
public BasicBorders.RolloverButtonBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
shadow
- the shadow color.darkShadow
- a darker variant of the shadow color.highlight
- the highlight color.lightHighlight
- a brighter variant of the highlight color.public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
c
is not an AbstractButton
whose model
returns true
for ButtonModel.isRollover()
, nothing gets painted at
all.paintBorder
in interface Border
paintBorder
in class BasicBorders.ButtonBorder
c
- the button whose border is to be painted.g
- the graphics for painting.x
- the horizontal position for painting the border.y
- the vertical position for painting the border.width
- the width of the available area for painting the border.height
- the height of the available area for painting the border.BasicGraphicsUtils.drawBezel(java.awt.Graphics, int, int, int, int, boolean, boolean, java.awt.Color, java.awt.Color, java.awt.Color, java.awt.Color)