Package com.jgoodies.looks.plastic
Class PlasticBorders
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticBorders
-
final class PlasticBorders extends java.lang.ObjectThis class consists of a set ofBorders 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 classPlasticBorders.ButtonBorderprivate static classPlasticBorders.ComboBoxArrowButtonBorderprivate static classPlasticBorders.ComboBoxEditorBorderprivate static classPlasticBorders.EtchedBorderA border used for menu bars and tool bars inHeaderStyle.SINGLE.private static classPlasticBorders.Flush3DBorderprivate static classPlasticBorders.InternalFrameBorderA border used forJInternalFrames.private static classPlasticBorders.MenuBarHeaderBorderA border used for menu bars inHeaderStyle.BOTH.private static classPlasticBorders.MenuBorderprivate static classPlasticBorders.NoMarginPopupMenuBorderprivate static classPlasticBorders.PaletteBorderA border used for the palette ofJInternalFrames.private static classPlasticBorders.PopupMenuBorderprivate static classPlasticBorders.RolloverButtonBorder(package private) static classPlasticBorders.RolloverMarginBorderA 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 classPlasticBorders.ScrollPaneBorderUnlike Metal we don't paint the (misplaced) control color edges.private static classPlasticBorders.SeparatorBorderA border that looks like a separator line; used for menu bars and tool bars.private static classPlasticBorders.TextFieldBorderprivate static classPlasticBorders.ThinLoweredBorderprivate static classPlasticBorders.ThinRaisedBorderprivate static classPlasticBorders.ToggleButtonBorderprivate static classPlasticBorders.ToolBarHeaderBorderA border used for tool bars inHeaderStyle.BOTH.
-
Field Summary
Fields Modifier and Type Field Description private static javax.swing.border.BordercomboBoxArrowButtonBorderprivate static javax.swing.border.BordercomboBoxEditorBorderprivate static javax.swing.border.BorderetchedBorderprivate static javax.swing.border.Borderflush3DBorderprivate static javax.swing.border.BordermenuBarHeaderBorderprivate static javax.swing.border.BordermenuBorderprivate static javax.swing.border.BordermenuItemBorderprivate static javax.swing.border.BordernoMarginPopupMenuBorderprivate static javax.swing.border.BorderpopupMenuBorderprivate static javax.swing.border.BorderrolloverButtonBorderprivate static javax.swing.border.BorderscrollPaneBorderprivate static javax.swing.border.BorderseparatorBorderprivate static javax.swing.border.BordertextFieldBorderprivate static javax.swing.border.BorderthinLoweredBorderprivate static javax.swing.border.BorderthinRaisedBorderprivate static javax.swing.border.BordertoolBarHeaderBorder
-
Constructor Summary
Constructors Modifier Constructor Description privatePlasticBorders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static javax.swing.border.BordergetButtonBorder(java.awt.Insets buttonMargin)Returns a border instance for aJButton.(package private) static javax.swing.border.BordergetComboBoxArrowButtonBorder()Returns a border for aJComboBox's button.(package private) static javax.swing.border.BordergetComboBoxEditorBorder()Returns a border for aJComboBox's editor.(package private) static javax.swing.border.BordergetEtchedBorder()Returns an etched border instance forJMenuBarorJToolBar.(package private) static javax.swing.border.BordergetFlush3DBorder()Returns a flushed 3D border.(package private) static javax.swing.border.BordergetInternalFrameBorder()Returns a border for aJInternalFrame.(package private) static javax.swing.border.BordergetMenuBarHeaderBorder()Returns a special border for aJMenuBarthat is used in a header just above aJToolBar.(package private) static javax.swing.border.BordergetMenuBorder()Returns a border instance for aJMenu.(package private) static javax.swing.border.BordergetMenuItemBorder()Returns a border instance for aJMenuItem.(package private) static javax.swing.border.BordergetNoMarginPopupMenuBorder()Returns a border instance for aJPopupMenuthat has no (extra) margin.(package private) static javax.swing.border.BordergetPaletteBorder()Returns a border for aJInternalFrame's palette.(package private) static javax.swing.border.BordergetPopupMenuBorder()Returns a border instance for aJPopupMenu.(package private) static javax.swing.border.BordergetRolloverButtonBorder()Returns a rollover border for buttons in aJToolBar.(package private) static javax.swing.border.BordergetScrollPaneBorder()Returns a separator border instance forJScrollPane.(package private) static javax.swing.border.BordergetSeparatorBorder()Returns a separator border instance forJMenuBarorJToolBar.(package private) static javax.swing.border.BordergetTextFieldBorder()Returns a border instance for a JTextField.(package private) static javax.swing.border.BordergetThinLoweredBorder()Returns a thin lowered border.(package private) static javax.swing.border.BordergetThinRaisedBorder()Returns a thin raised border.(package private) static javax.swing.border.BordergetToggleButtonBorder(java.awt.Insets buttonMargin)Returns a border instance for a JToggleButton.(package private) static javax.swing.border.BordergetToolBarHeaderBorder()Returns a special border for aJToolBarthat 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 forJMenuBarorJToolBar.- 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 aJMenuBarthat 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 aJPopupMenuthat 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 forJMenuBarorJToolBar.- 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 aJToolBarthat is used in a header just below aJMenuBar.- Returns:
- the lazily created toolbar header border
-
-