|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
weka.gui.beans.ShadowBorder
public class ShadowBorder
| Constructor Summary | |
|---|---|
ShadowBorder()
Constructor. |
|
ShadowBorder(int width)
Constructor. |
|
ShadowBorder(int width,
Color color)
Constructor. |
|
| Method Summary | |
|---|---|
Insets |
getBorderInsets(Component c)
Returns a new Insets instance where the top and left are 1, the bottom and right fields are the border width + 1. |
Insets |
getBorderInsets(Component c,
Insets insets)
Reinitializes the insets parameter with this ShadowBorder's
current Insets. |
boolean |
isBorderOpaque()
This implementation always returns true. |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the drop shadow border around the given component. |
| Methods inherited from class javax.swing.border.AbstractBorder |
|---|
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShadowBorder()
public ShadowBorder(int width)
width - the width of the shadow.
public ShadowBorder(int width,
Color color)
width - the width of the shadow.color - the color of the shadow.| Method Detail |
|---|
public Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderc - the component for which this border insets value applies
public Insets getBorderInsets(Component c,
Insets insets)
insets parameter with this ShadowBorder's
current Insets.
getBorderInsets in class AbstractBorderc - the component for which this border insets value appliesinsets - the object to be reinitialized
insets objectpublic boolean isBorderOpaque()
isBorderOpaque in interface BorderisBorderOpaque in class AbstractBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface BorderpaintBorder in class AbstractBorderc - - 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 border
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||