Package com.jgoodies.looks.plastic
Class PlasticBorders
java.lang.Object
com.jgoodies.looks.plastic.PlasticBorders
This class consists of a set of
Border
s used
by the JGoodies Plastic Look and Feel UI delegates.- Version:
- $Revision: 1.15 $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static final class
private static final class
private static final class
A border used for menu bars and tool bars inHeaderStyle.SINGLE
.private static class
private static final class
A border used forJInternalFrame
s.private static final class
A border used for menu bars inHeaderStyle.BOTH
.private static final class
private static final class
private static final class
A border used for the palette ofJInternalFrame
s.private static final class
private static final class
(package private) static final class
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 final class
Unlike Metal we don't paint the (misplaced) control color edges.private static final class
A border that looks like a separator line; used for menu bars and tool bars.private static final class
private static final class
private static final class
private static final class
private static final class
A border used for tool bars inHeaderStyle.BOTH
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
private static Border
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Border
getButtonBorder
(Insets buttonMargin) Returns a border instance for aJButton
.(package private) static Border
Returns a border for aJComboBox
's button.(package private) static Border
Returns a border for aJComboBox
's editor.(package private) static Border
Returns an etched border instance forJMenuBar
orJToolBar
.(package private) static Border
Returns a flushed 3D border.(package private) static Border
Returns a border for aJInternalFrame
.(package private) static Border
Returns a special border for aJMenuBar
that is used in a header just above aJToolBar
.(package private) static Border
Returns a border instance for aJMenu
.(package private) static Border
Returns a border instance for aJMenuItem
.(package private) static Border
Returns a border instance for aJPopupMenu
that has no (extra) margin.(package private) static Border
Returns a border for aJInternalFrame
's palette.(package private) static Border
Returns a border instance for aJPopupMenu
.(package private) static Border
Returns a rollover border for buttons in aJToolBar
.(package private) static Border
Returns a separator border instance forJScrollPane
.(package private) static Border
Returns a separator border instance forJMenuBar
orJToolBar
.(package private) static Border
Returns a border instance for a JTextField.(package private) static Border
Returns a thin lowered border.(package private) static Border
Returns a thin raised border.(package private) static Border
getToggleButtonBorder
(Insets buttonMargin) Returns a border instance for a JToggleButton.(package private) static Border
Returns a special border for aJToolBar
that is used in a header just below aJMenuBar
.
-
Field Details
-
comboBoxEditorBorder
-
comboBoxArrowButtonBorder
-
etchedBorder
-
flush3DBorder
-
popupMenuBorder
-
noMarginPopupMenuBorder
-
rolloverButtonBorder
-
scrollPaneBorder
-
separatorBorder
-
textFieldBorder
-
thinLoweredBorder
-
thinRaisedBorder
-
toolBarHeaderBorder
-
-
Constructor Details
-
PlasticBorders
private PlasticBorders()
-
-
Method Details
-
getButtonBorder
Returns a border instance for aJButton
.- Returns:
- the lazily created button border
-
getComboBoxArrowButtonBorder
Returns a border for aJComboBox
's button.- Returns:
- the lazily created combo box arrow button border
-
getComboBoxEditorBorder
Returns a border for aJComboBox
's editor.- Returns:
- the lazily created combo box editor border
-
getEtchedBorder
Returns an etched border instance forJMenuBar
orJToolBar
.- Returns:
- the lazily created etched border
-
getFlush3DBorder
Returns a flushed 3D border.- Returns:
- the lazily created flushed 3D border
-
getInternalFrameBorder
Returns a border for aJInternalFrame
.- Returns:
- an internal frame 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
Returns a border instance for aJMenu
.- Returns:
- the lazily created menu border
-
getMenuItemBorder
Returns a border instance for aJMenuItem
.- Returns:
- the lazily created menu item border
-
getPopupMenuBorder
Returns a border instance for aJPopupMenu
.- Returns:
- the lazily created popup menu border
-
getNoMarginPopupMenuBorder
Returns a border instance for aJPopupMenu
that has no (extra) margin.- Returns:
- the lazily created no-margin popup menu border
-
getPaletteBorder
Returns a border for aJInternalFrame
's palette.- Returns:
- a border for an internal frame in palette mode
-
getRolloverButtonBorder
Returns a rollover border for buttons in aJToolBar
.- Returns:
- the lazily created rollover button border
-
getScrollPaneBorder
Returns a separator border instance forJScrollPane
.- Returns:
- the lazily created scroll pane border
-
getSeparatorBorder
Returns a separator border instance forJMenuBar
orJToolBar
.- Returns:
- the lazily created separator border
-
getTextFieldBorder
Returns a border instance for a JTextField.- Returns:
- the lazily created text field border
-
getThinLoweredBorder
Returns a thin lowered border.- Returns:
- the lazily created thin lowered border
-
getThinRaisedBorder
Returns a thin raised border.- Returns:
- the lazily created thin raised border
-
getToggleButtonBorder
Returns a border instance for a JToggleButton.- Returns:
- the lazily created toggle button border
-
getToolBarHeaderBorder
Returns a special border for aJToolBar
that is used in a header just below aJMenuBar
.- Returns:
- the lazily created toolbar header border
-