|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.swing.border.MatteBorder
org.jdesktop.swingx.border.MatteBorderExt
public class MatteBorderExt
Matte border that allows specialized icons for corners and sides.
Field Summary | |
---|---|
protected Icon[] |
tileIcons
|
Fields inherited from class javax.swing.border.MatteBorder |
---|
color, tileIcon |
Fields inherited from class javax.swing.border.EmptyBorder |
---|
bottom, left, right, top |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
Paints the matte border. |
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() |
Methods inherited from class javax.swing.border.MatteBorder |
---|
getBorderInsets, getBorderInsets, getBorderInsets, getMatteColor, getTileIcon, isBorderOpaque |
Methods inherited from class javax.swing.border.AbstractBorder |
---|
getInteriorRectangle, getInteriorRectangle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Icon[] tileIcons
Constructor Detail |
---|
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)
MatteBorder.MatteBorder(int, int, int, int, java.awt.Color)
public MatteBorderExt(Insets borderInsets, Color matteColor)
MatteBorder.MatteBorder(java.awt.Insets, java.awt.Color)
public MatteBorderExt(int top, int left, int bottom, int right, Icon tileIcon)
MatteBorder.MatteBorder(int, int, int, int, javax.swing.Icon)
public MatteBorderExt(Insets borderInsets, Icon tileIcon)
MatteBorder.MatteBorder(java.awt.Insets, javax.swing.Icon)
public MatteBorderExt(Icon tileIcon)
MatteBorder.MatteBorder(javax.swing.Icon)
Method Detail |
---|
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
c
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted borderprotected void paint(Icon icon, 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 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |