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 Color | color
The color rendered for the border. |
| protected Icon | tileIcon
The icon to be used for tiling the border. |
| Access | Constructor and Description |
|---|---|
| public | MatteBorder(int
the top inset of the border top, int the left inset of the border left, int the bottom inset of the border bottom, int the right inset of the border right, Color the color rendered for the border matteColor)Creates a matte border with the specified insets and color. |
| public | MatteBorder(Insets
the insets of the border borderInsets, Color the color rendered for the border matteColor)Creates a matte border with the specified insets and color. |
| public | MatteBorder(int
the top inset of the border top, int the left inset of the border left, int the bottom inset of the border bottom, int the right inset of the border right, Icon the icon to be used for tiling the border tileIcon)Creates a matte border with the specified insets and tile icon. |
| public | MatteBorder(Insets
the insets of the border borderInsets, Icon the icon to be used for tiling the border tileIcon)Creates a matte border with the specified insets and tile icon. |
| public | MatteBorder(Icon
the icon to be used for tiling the border tileIcon)Creates a matte border with the specified tile icon. |
| Modifier and Type | Method and Description |
|---|---|
| private Insets | |
| 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 Insets | getBorderInsets()
Overrides javax. Returns the insets of the border. |
| public Color | Returns: theColor object used to render the border or null
if a tile icon is usedReturns the color used for tiling the border or null if a tile icon is being used. |
| public Icon | Returns: theIcon used to tile the border or null if a
solid color is used to fill the borderReturns the icon used for tiling the border or null if a solid color is being used. |
| public boolean | Returns: true if the border is opaque, false otherwiseOverrides javax. 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)
Overrides javax. Implements javax. Paints the matte border. |
| private void |
| color | back to summary |
|---|---|
| protected Color color The color rendered for the border. | |
| tileIcon | back to summary |
|---|---|
| protected Icon tileIcon The icon to be used for tiling the border. | |
| MatteBorder | back to summary |
|---|---|
| public MatteBorder(int top, int left, int bottom, int right, Color matteColor) Creates a matte border with the specified insets and color.
| |
| MatteBorder | back to summary |
|---|---|
| public MatteBorder(Insets borderInsets, Color matteColor) Creates a matte border with the specified insets and color.
| |
| MatteBorder | back to summary |
|---|---|
| public MatteBorder(int top, int left, int bottom, int right, Icon tileIcon) Creates a matte border with the specified insets and tile icon.
| |
| MatteBorder | back to summary |
|---|---|
| public MatteBorder(Insets borderInsets, Icon tileIcon) Creates a matte border with the specified insets and tile icon.
| |
| MatteBorder | back to summary |
|---|---|
| public MatteBorder(Icon tileIcon) Creates a matte border with the specified tile icon. The insets will be calculated dynamically based on the size of the tile icon, where the top and bottom will be equal to the tile icon's height, and the left and right will be equal to the tile icon's width.
| |
| computeInsets | back to summary |
|---|---|
| private Insets computeInsets(Insets insets) | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Reinitialize the insets parameter with this Border's current Insets.
| |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets() Overrides javax. Returns the insets of the border.
| |
| getMatteColor | back to summary |
|---|---|
| public Color getMatteColor() Returns the color used for tiling the border or null if a tile icon is being used.
| |
| getTileIcon | back to summary |
|---|---|
| public Icon getTileIcon() Returns the icon used for tiling the border or null if a solid color is being used.
| |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Overrides javax. Implements javax. Returns whether or not the border is opaque.
| |
| 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 matte border. | |
| paintEdge | back to summary |
|---|---|
| private void paintEdge(Component c, Graphics g, int x, int y, int width, int height, int tileW, int tileH) | |