public class MatteBorderExt extends MatteBorder
Modifier and Type | Field and Description |
---|---|
private Icon |
defaultIcon |
protected Icon[] |
tileIcons |
color, tileIcon
bottom, left, right, top
Constructor and Description |
---|
MatteBorderExt(Icon tileIcon) |
MatteBorderExt(Insets borderInsets,
Color matteColor) |
MatteBorderExt(Insets borderInsets,
Icon tileIcon) |
MatteBorderExt(int top,
int left,
int bottom,
int right,
Color matteColor) |
MatteBorderExt(int top,
int left,
int bottom,
int right,
Icon tileIcon) |
MatteBorderExt(int top,
int left,
int bottom,
int right,
Icon[] tileIcons)
Draws a matte border using specialized icons for corners and sides.
|
Modifier and Type | Method and Description |
---|---|
protected Icon |
getDefaultIcon()
Only called by paintBorder()
|
Icon[] |
getTileIcons()
Returns the icons used by this border
|
protected void |
paint(Icon icon,
Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
protected void |
paintBottom(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Only called by paintBorder()
|
protected void |
paintBottomLeft(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Only called by paintBorder()
|
protected void |
paintBottomRight(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Only called by paintBorder()
|
protected void |
paintLeft(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Only called by paintBorder()
|
protected void |
paintRight(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Only called by paintBorder()
|
protected void |
paintTop(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Only called by paintBorder()
|
protected void |
paintTopLeft(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Only called by paintBorder()
|
protected void |
paintTopRight(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Only called by paintBorder()
|
getBorderInsets, getBorderInsets, getMatteColor, getTileIcon, isBorderOpaque
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
private Icon defaultIcon
public MatteBorderExt(int top, int left, int bottom, int right, Icon[] tileIcons)
superclass
behavior.
Otherwise, tileIcons must specify icons in clockwise order, starting with
the top-left icon at index zero, culminating with the left icon at index 7.
If the length of the tileIcons array is greater than 1, but less than 8,
then tileIcons[0] is used to paint the corners, and tileIcons[1] is used
to paint the sides, with icons rotated as necessary. Other icons, if any,
are ignored.top
- top insetleft
- left insetbottom
- bottom insetright
- right insettileIcons
- array of icons starting with top-left in index 0,
continuing clockwise through the rest of the indicespublic MatteBorderExt(int top, int left, int bottom, int right, Color matteColor)
public MatteBorderExt(Insets borderInsets, Color matteColor)
public MatteBorderExt(int top, int left, int bottom, int right, Icon tileIcon)
public MatteBorderExt(Insets borderInsets, Icon tileIcon)
public MatteBorderExt(Icon tileIcon)
public Icon[] getTileIcons()
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
paintBorder
in class MatteBorder
protected void paintTopLeft(Component c, Graphics g, int x, int y, int width, int height)
protected void paintTop(Component c, Graphics g, int x, int y, int width, int height)
protected void paintTopRight(Component c, Graphics g, int x, int y, int width, int height)
protected void paintRight(Component c, Graphics g, int x, int y, int width, int height)
protected void paintBottomRight(Component c, Graphics g, int x, int y, int width, int height)
protected void paintBottom(Component c, Graphics g, int x, int y, int width, int height)
protected void paintBottomLeft(Component c, Graphics g, int x, int y, int width, int height)
protected void paintLeft(Component c, Graphics g, int x, int y, int width, int height)
protected Icon getDefaultIcon()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses