| javax.swing.border.MatteBorder org.jdesktop.swingx.border.MatteBorderExt
MatteBorderExt | public class MatteBorderExt extends MatteBorder (Code) | | Matte border that allows specialized icons for corners and sides.
author: Ramesh Gupta |
Constructor Summary | |
public | MatteBorderExt(int top, int left, int bottom, int right, Icon[] tileIcons) Draws a matte border using specialized icons for corners and sides. | public | 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) |
Method Summary | |
protected Icon | getDefaultIcon() | public Icon[] | getTileIcons() | protected void | paint(Icon icon, Component c, Graphics g, int x, int y, int width, int height) | public 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) | protected void | paintBottomLeft(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 | paintLeft(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 | paintTop(Component c, Graphics g, int x, int y, int width, int height) | protected void | paintTopLeft(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) |
MatteBorderExt | public MatteBorderExt(int top, int left, int bottom, int right, Icon[] tileIcons)(Code) | | Draws a matte border using specialized icons for corners and sides. If
tileIcons is null, or if the length of tileIcons array is less than 2, this
defaults to the
javax.swing.border.MatteBorder 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.
Parameters: top - top inset Parameters: left - left inset Parameters: bottom - bottom inset Parameters: right - right inset Parameters: tileIcons - array of icons starting with top-left in index 0,continuing clockwise through the rest of the indices |
getDefaultIcon | protected Icon getDefaultIcon()(Code) | | Only called by paintBorder()
|
getTileIcons | public Icon[] getTileIcons()(Code) | | Returns the icons used by this border
the icons used by this border |
paintBottom | protected void paintBottom(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Only called by paintBorder()
|
paintBottomLeft | protected void paintBottomLeft(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Only called by paintBorder()
|
paintBottomRight | protected void paintBottomRight(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Only called by paintBorder()
|
paintLeft | protected void paintLeft(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Only called by paintBorder()
|
paintRight | protected void paintRight(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Only called by paintBorder()
|
paintTop | protected void paintTop(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Only called by paintBorder()
|
paintTopLeft | protected void paintTopLeft(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Only called by paintBorder()
|
paintTopRight | protected void paintTopRight(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Only called by paintBorder()
|
|
|