|
|||||||||
| Home >> All >> javax >> swing >> plaf >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.swing.plaf.basic
Class BasicBorders.FieldBorder

java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.plaf.basic.BasicBorders.FieldBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
- Enclosing class:
- BasicBorders
- public static class BasicBorders.FieldBorder
- extends javax.swing.border.AbstractBorder
- implements javax.swing.plaf.UIResource
- extends javax.swing.border.AbstractBorder
A border that makes its enclosed component appear as lowered into the surface. Typically used for text fields.
| Field Summary | |
protected java.awt.Color |
darkShadow
The color for drawing the inner half of the top and left edges. |
protected java.awt.Color |
highlight
The color for drawing the inner half of the bottom and right edges. |
protected java.awt.Color |
lightHighlight
The color for drawing the outer half of the bottom and right edges. |
(package private) static long |
serialVersionUID
Determined using the serialver tool
of Apple/Sun JDK 1.3.1 on MacOS X 10.1.5. |
protected java.awt.Color |
shadow
The color for drawing the outer half of the top and left edges. |
| Constructor Summary | |
BasicBorders.FieldBorder(java.awt.Color shadow,
java.awt.Color darkShadow,
java.awt.Color highlight,
java.awt.Color lightHighlight)
Constructs a new border for drawing a text field in the Basic look and feel. |
|
| Method Summary | |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Measures the width of this border. |
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
Measures the width of this border, storing the results into a pre-existing Insets object. |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the FieldBorder around a given component. |
| Methods inherited from class javax.swing.border.AbstractBorder |
getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
serialVersionUID
static final long serialVersionUID
- Determined using the
serialvertool of Apple/Sun JDK 1.3.1 on MacOS X 10.1.5.- See Also:
- Constant Field Values
shadow
protected java.awt.Color shadow
- The color for drawing the outer half of the top and left
edges.
darkShadow
protected java.awt.Color darkShadow
- The color for drawing the inner half of the top and left
edges.
highlight
protected java.awt.Color highlight
- The color for drawing the inner half of the bottom and right
edges.
lightHighlight
protected java.awt.Color lightHighlight
- The color for drawing the outer half of the bottom and right
edges.
| Constructor Detail |
BasicBorders.FieldBorder
public BasicBorders.FieldBorder(java.awt.Color shadow, java.awt.Color darkShadow, java.awt.Color highlight, java.awt.Color lightHighlight)
- Constructs a new border for drawing a text field in the Basic
look and feel.
| Method Detail |
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
- Paints the FieldBorder around a given component.
- Specified by:
paintBorderin interfacejavax.swing.border.Border
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Measures the width of this border.
- Specified by:
getBorderInsetsin interfacejavax.swing.border.Border
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
- Measures the width of this border, storing the results into a
pre-existing Insets object.
|
|||||||||
| Home >> All >> javax >> swing >> plaf >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC