| Modifier and Type | Class and Description |
|---|---|
| public static class | BasicBorders.
Draws a border around a button. |
| public static class | BasicBorders.
Draws the border around a field. |
| public static class | BasicBorders.
Draws the border around components which support margins. |
| public static class | BasicBorders.
Draws the border around a menu bar. |
| public static class | BasicBorders.
Draws the border around a radio button. |
| public static class | BasicBorders.
Special thin border for rollover toolbar buttons. |
| pack-priv static class | BasicBorders.
A border which is like a Margin border but it will only honor the margin if the margin has been explicitly set by the developer. |
| public static class | BasicBorders.
Draws the border around the splitpane. |
| pack-priv static class | BasicBorders.
Draws the border around the divider in a splitpane (when BasicSplitPaneUI is used). |
| public static class | BasicBorders.
Draws the border around a toggle button. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Border | |
| public static Border | Returns: a border instance for aJInternalFrameReturns a border instance for a |
| public static Border | Returns: a border instance for aJMenuBarReturns a border instance for a |
| public static Border | Returns: a border instance for aJProgressBarReturns a border instance for a |
| public static Border | Returns: a border instance for aJRadioButtonReturns a border instance for a |
| public static Border | Returns: a border instance for aJSplitPaneReturns a border instance for a |
| public static Border | Returns: a border instance for aJSplitPane dividerReturns a border instance for a |
| public static Border | Returns: a border instance for aJTextFieldReturns a border instance for a |
| public static Border | Returns: a border instance for aJToggleButtonReturns a border instance for a |
| BasicBorders | back to summary |
|---|---|
| public BasicBorders() Constructs a | |
| getButtonBorder | back to summary |
|---|---|
| public static Border getButtonBorder() Returns a border instance for a
| |
| getInternalFrameBorder | back to summary |
|---|---|
| public static Border getInternalFrameBorder() Returns a border instance for a
| |
| getMenuBarBorder | back to summary |
|---|---|
| public static Border getMenuBarBorder() Returns a border instance for a
| |
| getProgressBarBorder | back to summary |
|---|---|
| public static Border getProgressBarBorder() Returns a border instance for a
| |
| getRadioButtonBorder | back to summary |
|---|---|
| public static Border getRadioButtonBorder() Returns a border instance for a
| |
| getSplitPaneBorder | back to summary |
|---|---|
| public static Border getSplitPaneBorder() Returns a border instance for a
| |
| getSplitPaneDividerBorder | back to summary |
|---|---|
| public static Border getSplitPaneDividerBorder() Returns a border instance for a
| |
| getTextFieldBorder | back to summary |
|---|---|
| public static Border getTextFieldBorder() Returns a border instance for a
| |
| getToggleButtonBorder | back to summary |
|---|---|
| public static Border getToggleButtonBorder() Returns a border instance for a
| |
| Modifier and Type | Field and Description |
|---|---|
| protected Color | darkShadow
The color of dark shadow. |
| protected Color | highlight
The color of highlight. |
| protected Color | lightHighlight
The color of light highlight. |
| protected Color | shadow
The color of shadow. |
| Access | Constructor and Description |
|---|---|
| public | ButtonBorder(Color
a color of shadow shadow, Color a color of dark shadow darkShadow, Color a color of highlight highlight, Color a color of light highlight lightHighlight)Constructs a new instance of a |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| darkShadow | back to summary |
|---|---|
| protected Color darkShadow The color of dark shadow. | |
| highlight | back to summary |
|---|---|
| protected Color highlight The color of highlight. | |
| lightHighlight | back to summary |
|---|---|
| protected Color lightHighlight The color of light highlight. | |
| shadow | back to summary |
|---|---|
| protected Color shadow The color of shadow. | |
| ButtonBorder | back to summary |
|---|---|
| public ButtonBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight) Constructs a new instance of a | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |
| Modifier and Type | Field and Description |
|---|---|
| protected Color | darkShadow
The color of dark shadow. |
| protected Color | highlight
The color of highlight. |
| protected Color | lightHighlight
The color of light highlight. |
| protected Color | shadow
The color of shadow. |
| Access | Constructor and Description |
|---|---|
| public | FieldBorder(Color
a color of shadow shadow, Color a color of dark shadow darkShadow, Color a color of highlight highlight, Color a color of light highlight lightHighlight)Constructs a new instance of a |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| darkShadow | back to summary |
|---|---|
| protected Color darkShadow The color of dark shadow. | |
| highlight | back to summary |
|---|---|
| protected Color highlight The color of highlight. | |
| lightHighlight | back to summary |
|---|---|
| protected Color lightHighlight The color of light highlight. | |
| shadow | back to summary |
|---|---|
| protected Color shadow The color of shadow. | |
| FieldBorder | back to summary |
|---|---|
| public FieldBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight) Constructs a new instance of a | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| MarginBorder | back to summary |
|---|---|
| public MarginBorder() Constructs a | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| Modifier and Type | Field and Description |
|---|---|
| private Color | highlight
The color of highlight. |
| private Color | shadow
The color of shadow. |
| Access | Constructor and Description |
|---|---|
| public | MenuBarBorder(Color
a color of shadow shadow, Color a color of highlight highlight)Constructs a new instance of a |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| highlight | back to summary |
|---|---|
| private Color highlight The color of highlight. | |
| shadow | back to summary |
|---|---|
| private Color shadow The color of shadow. | |
| MenuBarBorder | back to summary |
|---|---|
| public MenuBarBorder(Color shadow, Color highlight) Constructs a new instance of a | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |
| Access | Constructor and Description |
|---|---|
| public | RadioButtonBorder(Color
a color of shadow shadow, Color a color of dark shadow darkShadow, Color a color of highlight highlight, Color a color of light highlight lightHighlight)Constructs a new instance of a |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| RadioButtonBorder | back to summary |
|---|---|
| public RadioButtonBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight) Constructs a new instance of a | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |
| Access | Constructor and Description |
|---|---|
| public | RolloverButtonBorder(Color
a color of shadow shadow, Color a color of dark shadow darkShadow, Color a color of highlight highlight, Color a color of light highlight lightHighlight)Constructs a new instance of a |
| Modifier and Type | Method and Description |
|---|---|
| public void | paintBorder(Component c, Graphics g, int x, int y, int w, int h)
Overrides javax. Implements javax. This default implementation does no painting. |
| RolloverButtonBorder | back to summary |
|---|---|
| public RolloverButtonBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight) Constructs a new instance of a | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |
Note
This is identical to the package private class MetalBorders.RolloverMarginBorder and should probably be consolidated.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitialize the insets parameter with this Border's current Insets. |
| RolloverMarginBorder | back to summary |
|---|---|
| public RolloverMarginBorder() | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitialize the insets parameter with this Border's current Insets. | |
| Modifier and Type | Field and Description |
|---|---|
| protected Color | highlight
The color of highlight |
| protected Color | shadow
The color of shadow |
| Access | Constructor and Description |
|---|---|
| public | SplitPaneBorder(Color
a color of highlight highlight, Color a color of shadow shadow)Constructs a new instance of a |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c)
Implements javax. Returns the insets of the border. |
| public boolean | isBorderOpaque()
Implements javax. Returns whether or not the border is opaque. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Implements javax. Paints the border for the specified component with the specified position and size. |
| highlight | back to summary |
|---|---|
| protected Color highlight The color of highlight | |
| shadow | back to summary |
|---|---|
| protected Color shadow The color of shadow | |
| SplitPaneBorder | back to summary |
|---|---|
| public SplitPaneBorder(Color highlight, Color shadow) Constructs a new instance of a | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c) Implements javax. Doc from javax. Returns the insets of the border. | |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Implements javax. Doc from javax. Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Implements javax. Doc from javax. Paints the border for the specified component with the specified position and size. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c)
Implements javax. Returns the insets of the border. |
| public boolean | isBorderOpaque()
Implements javax. Returns whether or not the border is opaque. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Implements javax. Paints the border for the specified component with the specified position and size. |
| highlight | back to summary |
|---|---|
| pack-priv Color highlight | |
| shadow | back to summary |
|---|---|
| pack-priv Color shadow | |
| SplitPaneDividerBorder | back to summary |
|---|---|
| pack-priv SplitPaneDividerBorder(Color highlight, Color shadow) | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c) Implements javax. Doc from javax. Returns the insets of the border. | |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Implements javax. Doc from javax. Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Implements javax. Doc from javax. Paints the border for the specified component with the specified position and size. | |
| Access | Constructor and Description |
|---|---|
| public | ToggleButtonBorder(Color
a color of shadow shadow, Color a color of dark shadow darkShadow, Color a color of highlight highlight, Color a color of light highlight lightHighlight)Constructs a new instance of a |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| ToggleButtonBorder | back to summary |
|---|---|
| public ToggleButtonBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight) Constructs a new instance of a | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting. | |