java.io.Serializable
, javax.swing.border.Border
public class MatteBorderExt
extends javax.swing.border.MatteBorder
Modifier and Type | Field | Description |
---|---|---|
protected javax.swing.Icon[] |
tileIcons |
Constructor | Description |
---|---|
MatteBorderExt(int top,
int left,
int bottom,
int right,
java.awt.Color matteColor) |
|
MatteBorderExt(int top,
int left,
int bottom,
int right,
javax.swing.Icon tileIcon) |
|
MatteBorderExt(int top,
int left,
int bottom,
int right,
javax.swing.Icon[] tileIcons) |
Draws a matte border using specialized icons for corners and sides.
|
MatteBorderExt(java.awt.Insets borderInsets,
java.awt.Color matteColor) |
|
MatteBorderExt(java.awt.Insets borderInsets,
javax.swing.Icon tileIcon) |
|
MatteBorderExt(javax.swing.Icon tileIcon) |
Modifier and Type | Method | Description |
---|---|---|
protected javax.swing.Icon |
getDefaultIcon() |
Only called by paintBorder()
|
javax.swing.Icon[] |
getTileIcons() |
Returns the icons used by this border
|
protected void |
paint(javax.swing.Icon icon,
java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
|
protected void |
paintBottom(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Only called by paintBorder()
|
protected void |
paintBottomLeft(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Only called by paintBorder()
|
protected void |
paintBottomRight(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Only called by paintBorder()
|
protected void |
paintLeft(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Only called by paintBorder()
|
protected void |
paintRight(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Only called by paintBorder()
|
protected void |
paintTop(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Only called by paintBorder()
|
protected void |
paintTopLeft(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Only called by paintBorder()
|
protected void |
paintTopRight(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Only called by paintBorder()
|
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
public MatteBorderExt(int top, int left, int bottom, int right, javax.swing.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, java.awt.Color matteColor)
MatteBorder(int, int, int, int, java.awt.Color)
public MatteBorderExt(java.awt.Insets borderInsets, java.awt.Color matteColor)
MatteBorder(java.awt.Insets, java.awt.Color)
public MatteBorderExt(int top, int left, int bottom, int right, javax.swing.Icon tileIcon)
MatteBorder(int, int, int, int, javax.swing.Icon)
public MatteBorderExt(java.awt.Insets borderInsets, javax.swing.Icon tileIcon)
MatteBorder(java.awt.Insets, javax.swing.Icon)
public MatteBorderExt(javax.swing.Icon tileIcon)
MatteBorder(javax.swing.Icon)
public javax.swing.Icon[] getTileIcons()
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
paintBorder
in class javax.swing.border.MatteBorder
protected void paint(javax.swing.Icon icon, java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected void paintTopLeft(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected void paintTop(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected void paintTopRight(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected void paintRight(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected void paintBottomRight(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected void paintBottom(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected void paintBottomLeft(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected void paintLeft(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
protected javax.swing.Icon getDefaultIcon()