Package com.jgoodies.looks.plastic
Class PlasticBorders
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticBorders
-
final class PlasticBorders extends java.lang.Object
This class consists of a set ofBorder
s used by the JGoodies Plastic Look and Feel UI delegates.- Version:
- $Revision: 1.15 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PlasticBorders.ButtonBorder
private static class
PlasticBorders.ComboBoxArrowButtonBorder
private static class
PlasticBorders.ComboBoxEditorBorder
private static class
PlasticBorders.EtchedBorder
A border used for menu bars and tool bars inHeaderStyle.SINGLE
.private static class
PlasticBorders.Flush3DBorder
private static class
PlasticBorders.InternalFrameBorder
A border used forJInternalFrame
s.private static class
PlasticBorders.MenuBarHeaderBorder
A border used for menu bars inHeaderStyle.BOTH
.private static class
PlasticBorders.MenuBorder
private static class
PlasticBorders.NoMarginPopupMenuBorder
private static class
PlasticBorders.PaletteBorder
A border used for the palette ofJInternalFrame
s.private static class
PlasticBorders.PopupMenuBorder
private static class
PlasticBorders.RolloverButtonBorder
(package private) static class
PlasticBorders.RolloverMarginBorder
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.private static class
PlasticBorders.ScrollPaneBorder
Unlike Metal we don't paint the (misplaced) control color edges.private static class
PlasticBorders.SeparatorBorder
A border that looks like a separator line; used for menu bars and tool bars.private static class
PlasticBorders.TextFieldBorder
private static class
PlasticBorders.ThinLoweredBorder
private static class
PlasticBorders.ThinRaisedBorder
private static class
PlasticBorders.ToggleButtonBorder
private static class
PlasticBorders.ToolBarHeaderBorder
A border used for tool bars inHeaderStyle.BOTH
.
-
Field Summary
Fields Modifier and Type Field Description private static javax.swing.border.Border
comboBoxArrowButtonBorder
private static javax.swing.border.Border
comboBoxEditorBorder
private static javax.swing.border.Border
etchedBorder
private static javax.swing.border.Border
flush3DBorder
private static javax.swing.border.Border
menuBarHeaderBorder
private static javax.swing.border.Border
menuBorder
private static javax.swing.border.Border
menuItemBorder
private static javax.swing.border.Border
noMarginPopupMenuBorder
private static javax.swing.border.Border
popupMenuBorder
private static javax.swing.border.Border
rolloverButtonBorder
private static javax.swing.border.Border
scrollPaneBorder
private static javax.swing.border.Border
separatorBorder
private static javax.swing.border.Border
textFieldBorder
private static javax.swing.border.Border
thinLoweredBorder
private static javax.swing.border.Border
thinRaisedBorder
private static javax.swing.border.Border
toolBarHeaderBorder
-
Constructor Summary
Constructors Modifier Constructor Description private
PlasticBorders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static javax.swing.border.Border
getButtonBorder(java.awt.Insets buttonMargin)
Returns a border instance for aJButton
.(package private) static javax.swing.border.Border
getComboBoxArrowButtonBorder()
Returns a border for aJComboBox
's button.(package private) static javax.swing.border.Border
getComboBoxEditorBorder()
Returns a border for aJComboBox
's editor.(package private) static javax.swing.border.Border
getEtchedBorder()
Returns an etched border instance forJMenuBar
orJToolBar
.(package private) static javax.swing.border.Border
getFlush3DBorder()
Returns a flushed 3D border.(package private) static javax.swing.border.Border
getInternalFrameBorder()
Returns a border for aJInternalFrame
.(package private) static javax.swing.border.Border
getMenuBarHeaderBorder()
Returns a special border for aJMenuBar
that is used in a header just above aJToolBar
.(package private) static javax.swing.border.Border
getMenuBorder()
Returns a border instance for aJMenu
.(package private) static javax.swing.border.Border
getMenuItemBorder()
Returns a border instance for aJMenuItem
.(package private) static javax.swing.border.Border
getNoMarginPopupMenuBorder()
Returns a border instance for aJPopupMenu
that has no (extra) margin.(package private) static javax.swing.border.Border
getPaletteBorder()
Returns a border for aJInternalFrame
's palette.(package private) static javax.swing.border.Border
getPopupMenuBorder()
Returns a border instance for aJPopupMenu
.(package private) static javax.swing.border.Border
getRolloverButtonBorder()
Returns a rollover border for buttons in aJToolBar
.(package private) static javax.swing.border.Border
getScrollPaneBorder()
Returns a separator border instance forJScrollPane
.(package private) static javax.swing.border.Border
getSeparatorBorder()
Returns a separator border instance forJMenuBar
orJToolBar
.(package private) static javax.swing.border.Border
getTextFieldBorder()
Returns a border instance for a JTextField.(package private) static javax.swing.border.Border
getThinLoweredBorder()
Returns a thin lowered border.(package private) static javax.swing.border.Border
getThinRaisedBorder()
Returns a thin raised border.(package private) static javax.swing.border.Border
getToggleButtonBorder(java.awt.Insets buttonMargin)
Returns a border instance for a JToggleButton.(package private) static javax.swing.border.Border
getToolBarHeaderBorder()
Returns a special border for aJToolBar
that is used in a header just below aJMenuBar
.
-
-
-
Field Detail
-
comboBoxEditorBorder
private static javax.swing.border.Border comboBoxEditorBorder
-
comboBoxArrowButtonBorder
private static javax.swing.border.Border comboBoxArrowButtonBorder
-
etchedBorder
private static javax.swing.border.Border etchedBorder
-
flush3DBorder
private static javax.swing.border.Border flush3DBorder
-
menuBarHeaderBorder
private static javax.swing.border.Border menuBarHeaderBorder
-
menuBorder
private static javax.swing.border.Border menuBorder
-
menuItemBorder
private static javax.swing.border.Border menuItemBorder
-
popupMenuBorder
private static javax.swing.border.Border popupMenuBorder
-
noMarginPopupMenuBorder
private static javax.swing.border.Border noMarginPopupMenuBorder
-
rolloverButtonBorder
private static javax.swing.border.Border rolloverButtonBorder
-
scrollPaneBorder
private static javax.swing.border.Border scrollPaneBorder
-
separatorBorder
private static javax.swing.border.Border separatorBorder
-
textFieldBorder
private static javax.swing.border.Border textFieldBorder
-
thinLoweredBorder
private static javax.swing.border.Border thinLoweredBorder
-
thinRaisedBorder
private static javax.swing.border.Border thinRaisedBorder
-
toolBarHeaderBorder
private static javax.swing.border.Border toolBarHeaderBorder
-
-
Method Detail
-
getButtonBorder
static javax.swing.border.Border getButtonBorder(java.awt.Insets buttonMargin)
Returns a border instance for aJButton
.- Returns:
- the lazily created button border
-
getComboBoxArrowButtonBorder
static javax.swing.border.Border getComboBoxArrowButtonBorder()
Returns a border for aJComboBox
's button.- Returns:
- the lazily created combo box arrow button border
-
getComboBoxEditorBorder
static javax.swing.border.Border getComboBoxEditorBorder()
Returns a border for aJComboBox
's editor.- Returns:
- the lazily created combo box editor border
-
getEtchedBorder
static javax.swing.border.Border getEtchedBorder()
Returns an etched border instance forJMenuBar
orJToolBar
.- Returns:
- the lazily created etched border
-
getFlush3DBorder
static javax.swing.border.Border getFlush3DBorder()
Returns a flushed 3D border.- Returns:
- the lazily created flushed 3D border
-
getInternalFrameBorder
static javax.swing.border.Border getInternalFrameBorder()
Returns a border for aJInternalFrame
.- Returns:
- an internal frame border
-
getMenuBarHeaderBorder
static javax.swing.border.Border getMenuBarHeaderBorder()
Returns a special border for aJMenuBar
that is used in a header just above aJToolBar
.- Returns:
- the lazily created menu bar header border
-
getMenuBorder
static javax.swing.border.Border getMenuBorder()
Returns a border instance for aJMenu
.- Returns:
- the lazily created menu border
-
getMenuItemBorder
static javax.swing.border.Border getMenuItemBorder()
Returns a border instance for aJMenuItem
.- Returns:
- the lazily created menu item border
-
getPopupMenuBorder
static javax.swing.border.Border getPopupMenuBorder()
Returns a border instance for aJPopupMenu
.- Returns:
- the lazily created popup menu border
-
getNoMarginPopupMenuBorder
static javax.swing.border.Border getNoMarginPopupMenuBorder()
Returns a border instance for aJPopupMenu
that has no (extra) margin.- Returns:
- the lazily created no-margin popup menu border
-
getPaletteBorder
static javax.swing.border.Border getPaletteBorder()
Returns a border for aJInternalFrame
's palette.- Returns:
- a border for an internal frame in palette mode
-
getRolloverButtonBorder
static javax.swing.border.Border getRolloverButtonBorder()
Returns a rollover border for buttons in aJToolBar
.- Returns:
- the lazily created rollover button border
-
getScrollPaneBorder
static javax.swing.border.Border getScrollPaneBorder()
Returns a separator border instance forJScrollPane
.- Returns:
- the lazily created scroll pane border
-
getSeparatorBorder
static javax.swing.border.Border getSeparatorBorder()
Returns a separator border instance forJMenuBar
orJToolBar
.- Returns:
- the lazily created separator border
-
getTextFieldBorder
static javax.swing.border.Border getTextFieldBorder()
Returns a border instance for a JTextField.- Returns:
- the lazily created text field border
-
getThinLoweredBorder
static javax.swing.border.Border getThinLoweredBorder()
Returns a thin lowered border.- Returns:
- the lazily created thin lowered border
-
getThinRaisedBorder
static javax.swing.border.Border getThinRaisedBorder()
Returns a thin raised border.- Returns:
- the lazily created thin raised border
-
getToggleButtonBorder
static javax.swing.border.Border getToggleButtonBorder(java.awt.Insets buttonMargin)
Returns a border instance for a JToggleButton.- Returns:
- the lazily created toggle button border
-
getToolBarHeaderBorder
static javax.swing.border.Border getToolBarHeaderBorder()
Returns a special border for aJToolBar
that is used in a header just below aJMenuBar
.- Returns:
- the lazily created toolbar header border
-
-