Package com.jgoodies.looks.plastic
Class PlasticBorders
java.lang.Object
com.jgoodies.looks.plastic.PlasticBorders
This class consists of a set of
Borders used
by the JGoodies Plastic Look and Feel UI delegates.- Version:
- $Revision: 1.15 $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static final classprivate static final classprivate static final classA border used for menu bars and tool bars inHeaderStyle.SINGLE.private static classprivate static final classA border used forJInternalFrames.private static final classA border used for menu bars inHeaderStyle.BOTH.private static final classprivate static final classprivate static final classA border used for the palette ofJInternalFrames.private static final classprivate static final class(package private) static final classA 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 classUnlike Metal we don't paint the (misplaced) control color edges.private static final classA border that looks like a separator line; used for menu bars and tool bars.private static final classprivate static final classprivate static final classprivate static final classprivate static final classA border used for tool bars inHeaderStyle.BOTH. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Borderprivate static Border -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static BordergetButtonBorder(Insets buttonMargin) Returns a border instance for aJButton.(package private) static BorderReturns a border for aJComboBox's button.(package private) static BorderReturns a border for aJComboBox's editor.(package private) static BorderReturns an etched border instance forJMenuBarorJToolBar.(package private) static BorderReturns a flushed 3D border.(package private) static BorderReturns a border for aJInternalFrame.(package private) static BorderReturns a special border for aJMenuBarthat is used in a header just above aJToolBar.(package private) static BorderReturns a border instance for aJMenu.(package private) static BorderReturns a border instance for aJMenuItem.(package private) static BorderReturns a border instance for aJPopupMenuthat has no (extra) margin.(package private) static BorderReturns a border for aJInternalFrame's palette.(package private) static BorderReturns a border instance for aJPopupMenu.(package private) static BorderReturns a rollover border for buttons in aJToolBar.(package private) static BorderReturns a separator border instance forJScrollPane.(package private) static BorderReturns a separator border instance forJMenuBarorJToolBar.(package private) static BorderReturns a border instance for a JTextField.(package private) static BorderReturns a thin lowered border.(package private) static BorderReturns a thin raised border.(package private) static BordergetToggleButtonBorder(Insets buttonMargin) Returns a border instance for a JToggleButton.(package private) static BorderReturns a special border for aJToolBarthat 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 forJMenuBarorJToolBar.- 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 aJMenuBarthat 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 aJPopupMenuthat 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 forJMenuBarorJToolBar.- 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 aJToolBarthat is used in a header just below aJMenuBar.- Returns:
- the lazily created toolbar header border
-