public static class MetalBorders.ToolBarBorder extends AbstractBorder implements UIResource, SwingConstants
JToolBar
component.BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
MetalBorders.ToolBarBorder()
Creates a new border instance.
|
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c)
Returns the border insets.
|
Insets |
getBorderInsets(Component c,
Insets newInsets)
Returns the border insets.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border for the specified component.
|
getInteriorRectangle, getInteriorRectangle, isBorderOpaque
public MetalBorders.ToolBarBorder()
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
c
- the component (ignored).AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)
public Insets getBorderInsets(Component c, Insets newInsets)
getBorderInsets
in class AbstractBorder
c
- the component (ignored).newInsets
- an instance that will be overwritten and returned as the
result (null
not permitted).AbstractBorder.getBorderInsets(Component)
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
paintBorder
in interface Border
paintBorder
in class AbstractBorder
c
- the component.g
- the graphics device.x
- the x-coordinate.y
- the y-coordinate.w
- the width.h
- the height.