Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| protected int | bevelType
The bevel type. |
| protected Color | highlightInner
The color to use for the bevel inner highlight. |
| protected Color | highlightOuter
The color to use for the bevel outer highlight. |
| public static final int | LOWERED
Lowered bevel type. |
| public static final int | RAISED
Raised bevel type. |
| protected Color | shadowInner
The color to use for the bevel inner shadow. |
| protected Color | shadowOuter
the color to use for the bevel outer shadow |
| Access | Constructor and Description |
|---|---|
| public | BevelBorder(int
the type of bevel for the border bevelType)Creates a bevel border with the specified type and whose colors will be derived from the background color of the component passed into the paintBorder method. |
| public | BevelBorder(int
the type of bevel for the border bevelType, Color the color to use for the bevel highlight highlight, Color the color to use for the bevel shadow shadow)Creates a bevel border with the specified type, highlight and shadow colors. |
| public | BevelBorder(int
the type of bevel for the border bevelType, Color the color to use for the bevel outer highlight highlightOuterColor, Color the color to use for the bevel inner highlight highlightInnerColor, Color the color to use for the bevel outer shadow shadowOuterColor, Color the color to use for the bevel inner shadow shadowInnerColor)Creates a bevel border with the specified type, highlight and shadow colors. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the bevel border type, eitherRAISED or LOWEREDReturns the type of the bevel border. |
| public Insets | getBorderInsets(Component
the component for which this border insets value applies c, Insets the object to be reinitialized insets)Overrides javax. Reinitialize the insets parameter with this Border's current Insets. |
| public Color | Returns: the inner highlightColorthe component for which the highlight may be derived c)Returns the inner highlight color of the bevel border when rendered on the specified component. |
| public Color | Returns: the inner highlightColor or null if no highlight
color was specifiedReturns the inner highlight color of the bevel border. |
| public Color | Returns: the outer highlightColorthe component for which the highlight may be derived c)Returns the outer highlight color of the bevel border when rendered on the specified component. |
| public Color | Returns: the outer highlightColor or null if no highlight
color was specifiedReturns the outer highlight color of the bevel border. |
| public Color | Returns: the inner shadowColorthe component for which the shadow may be derived c)Returns the inner shadow color of the bevel border when rendered on the specified component. |
| public Color | Returns: the inner shadowColor or null if no shadow color
was specifiedReturns the inner shadow color of the bevel border. |
| public Color | Returns: the outer shadowColorthe component for which the shadow may be derived c)Returns the outer shadow color of the bevel border when rendered on the specified component. |
| public Color | Returns: the outer shadowColor or null if no shadow color
was specifiedReturns the outer shadow color of the bevel border. |
| public boolean | Returns: trueOverrides javax. Implements javax. Returns whether or not the border is opaque. |
| public void | paintBorder(Component
the component for which this border is being painted c, Graphics the paint graphics g, int the x position of the painted border x, int the y position of the painted border y, int the width of the painted border width, int the height of the painted border height)Overrides javax. Implements javax. Paints the border for the specified component with the specified position and size. |
| protected void | paintLoweredBevel(Component
the component for which the lowered bevel is being painted c, Graphics the paint graphics g, int the x position of the lowered bevel x, int the y position of the lowered bevel y, int the width of the lowered bevel width, int the height of the lowered bevel height)Paints a lowered bevel for the specified component with the specified position and size. |
| protected void | paintRaisedBevel(Component
the component for which the raised bevel is being painted c, Graphics the paint graphics g, int the x position of the raised bevel x, int the y position of the raised bevel y, int the width of the raised bevel width, int the height of the raised bevel height)Paints a raised bevel for the specified component with the specified position and size. |
| bevelType | back to summary |
|---|---|
| protected int bevelType The bevel type. | |
| highlightInner | back to summary |
|---|---|
| protected Color highlightInner The color to use for the bevel inner highlight. | |
| highlightOuter | back to summary |
|---|---|
| protected Color highlightOuter The color to use for the bevel outer highlight. | |
| LOWERED | back to summary |
|---|---|
| public static final int LOWERED Lowered bevel type. | |
| RAISED | back to summary |
|---|---|
| public static final int RAISED Raised bevel type. | |
| shadowInner | back to summary |
|---|---|
| protected Color shadowInner The color to use for the bevel inner shadow. | |
| shadowOuter | back to summary |
|---|---|
| protected Color shadowOuter the color to use for the bevel outer shadow | |
| BevelBorder | back to summary |
|---|---|
| public BevelBorder(int bevelType) Creates a bevel border with the specified type and whose colors will be derived from the background color of the component passed into the paintBorder method.
| |
| BevelBorder | back to summary |
|---|---|
| public BevelBorder(int bevelType, Color highlight, Color shadow) Creates a bevel border with the specified type, highlight and shadow colors. The bevel outer highlight color and bevel inner highlight color will be derived from specified highlight color and bevel outer shadow color and bevel inner shadow color will be derived from specified shadow color. | |
| BevelBorder | back to summary |
|---|---|
| public BevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor) Creates a bevel border with the specified type, highlight and shadow colors.
| |
| getBevelType | back to summary |
|---|---|
| public int getBevelType() Returns the type of the bevel border.
| |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Reinitialize the insets parameter with this Border's current Insets.
| |
| getHighlightInnerColor | back to summary |
|---|---|
| public Color getHighlightInnerColor(Component c) Returns the inner highlight color of the bevel border when rendered on the specified component. If no highlight color was specified at instantiation, the highlight color is derived from the specified component's background color. | |
| getHighlightInnerColor | back to summary |
|---|---|
| public Color getHighlightInnerColor() Returns the inner highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.
| |
| getHighlightOuterColor | back to summary |
|---|---|
| public Color getHighlightOuterColor(Component c) Returns the outer highlight color of the bevel border when rendered on the specified component. If no highlight color was specified at instantiation, the highlight color is derived from the specified component's background color. | |
| getHighlightOuterColor | back to summary |
|---|---|
| public Color getHighlightOuterColor() Returns the outer highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.
| |
| getShadowInnerColor | back to summary |
|---|---|
| public Color getShadowInnerColor(Component c) Returns the inner shadow color of the bevel border when rendered on the specified component. If no shadow color was specified at instantiation, the shadow color is derived from the specified component's background color. | |
| getShadowInnerColor | back to summary |
|---|---|
| public Color getShadowInnerColor() Returns the inner shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.
| |
| getShadowOuterColor | back to summary |
|---|---|
| public Color getShadowOuterColor(Component c) Returns the outer shadow color of the bevel border when rendered on the specified component. If no shadow color was specified at instantiation, the shadow color is derived from the specified component's background color. | |
| getShadowOuterColor | back to summary |
|---|---|
| public Color getShadowOuterColor() Returns the outer shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.
| |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Overrides javax. Implements javax. Returns whether or not the border is opaque. This implementation
returns
| |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Paints the border for the specified component with the specified position and size. | |
| paintLoweredBevel | back to summary |
|---|---|
| protected void paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height) Paints a lowered bevel for the specified component with the specified position and size. | |
| paintRaisedBevel | back to summary |
|---|---|
| protected void paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height) Paints a raised bevel for the specified component with the specified position and size. | |