|
||||||||||
| 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.EtchedBorder
dsto.dfc.swing.controls.EtchedDividingBorder
public class EtchedDividingBorder
A border that draws an etched line at the bottom of the component. Useful to display a dividing line between components.
| Field Summary |
|---|
| Fields inherited from class javax.swing.border.EtchedBorder |
|---|
etchType, highlight, LOWERED, RAISED, shadow |
| Constructor Summary | |
|---|---|
EtchedDividingBorder()
Creates a lowered etched border whose colors will be derived from the background color of the component passed into the paintBorder method. |
|
EtchedDividingBorder(Color highlight,
Color shadow)
Creates a lowered etched border with the specified highlight and shadow colors. |
|
EtchedDividingBorder(int etchType)
Creates an etched border with the specified etch-type whose colors will be derived from the background color of the component passed into the paintBorder method. |
|
EtchedDividingBorder(int etchType,
Color highlight,
Color shadow)
Creates an etched border with the specified etch-type, highlight and shadow colors. |
|
| Method Summary | |
|---|---|
Insets |
getBorderInsets(Component c)
Returns the insets of the border. |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
| Methods inherited from class javax.swing.border.EtchedBorder |
|---|
getBorderInsets, getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaque |
| Methods inherited from class javax.swing.border.AbstractBorder |
|---|
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EtchedDividingBorder()
public EtchedDividingBorder(int etchType)
etchType - the type of etch to be drawn by the border
public EtchedDividingBorder(Color highlight,
Color shadow)
highlight - the color to use for the etched highlightshadow - the color to use for the etched shadow
public EtchedDividingBorder(int etchType,
Color highlight,
Color shadow)
etchType - the type of etch to be drawn by the borderhighlight - the color to use for the etched highlightshadow - the color to use for the etched shadow| Method Detail |
|---|
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface BorderpaintBorder in class EtchedBorderc - 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 borderpublic Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class EtchedBorderc - the component for which this border insets value applies
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||