public static class BasicCalendarPanelUI.SelectionBorder extends Object implements Border, UIResource
SelectionBorder
is the default border for selected day cells
in an IlvJCalendarPanel
. It is used to wrapper the button border
of the current look and feel and forces the encapsulated button border to
always render as for the default button in the user interface.Constructor and Description |
---|
SelectionBorder(Border buttonBorder)
Creates a new
SelectionBorder that encapsulates the
specified button border. |
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c)
Returns the insets of the border.
|
boolean |
isBorderOpaque()
Returns whether or not the border is opaque.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified
position and size.
|
public SelectionBorder(Border buttonBorder)
SelectionBorder
that encapsulates the
specified button border.buttonBorder
- The button border.public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
c
- The component for which this border is being painted.g
- The paint graphics.x
- The x position of the painted border.y
- The y position of the painted border.width
- The width of the painted border.height
- The height of the painted border.public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
c
- The component for which this border insets' value applies.public boolean isBorderOpaque()
isBorderOpaque
in interface Border
true
if the border is opaque, or
false
otherwise.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.