public class WebPopupMenuSeparatorUI extends javax.swing.plaf.basic.BasicPopupMenuSeparatorUI implements Styleable, ShapeProvider, MarginSupport, PaddingSupport
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Insets |
margin |
protected java.awt.Insets |
padding |
protected IPopupMenuSeparatorPainter |
painter
Component painter.
|
protected javax.swing.JSeparator |
separator
Runtime variables.
|
EMPTYEMPTY| Constructor and Description |
|---|
WebPopupMenuSeparatorUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebPopupMenuSeparatorUI for the specified component.
|
java.awt.Insets |
getMargin()
Returns current margin.
|
java.awt.Insets |
getPadding()
Returns current padding.
|
Painter |
getPainter()
Returns separator painter.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
StyleId |
getStyleId()
Returns component style ID.
|
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
setMargin(java.awt.Insets margin)
Sets new margin.
|
void |
setPadding(java.awt.Insets padding)
Sets new padding.
|
void |
setPainter(Painter painter)
Sets separator painter.
|
StyleId |
setStyleId(StyleId id)
Sets new component style ID.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.
|
getMaximumSize, getMinimumSize, installDefaults, installListeners, uninstallDefaults, uninstallListeners@DefaultPainter(value=PopupMenuSeparatorPainter.class) protected IPopupMenuSeparatorPainter painter
protected javax.swing.JSeparator separator
protected java.awt.Insets margin
protected java.awt.Insets padding
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicSeparatorUIc - component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicSeparatorUIc - component with this UIpublic StyleId getStyleId()
StyleablegetStyleId in interface Styleablepublic StyleId setStyleId(StyleId id)
StyleablesetStyleId in interface Styleableid - custom component style IDpublic java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic java.awt.Insets getMargin()
MarginSupportgetMargin in interface MarginSupportpublic void setMargin(java.awt.Insets margin)
MarginSupportnull can be provided to set an empty [0,0,0,0] margin.setMargin in interface MarginSupportmargin - new marginpublic java.awt.Insets getPadding()
PaddingSupportgetPadding in interface PaddingSupportpublic void setPadding(java.awt.Insets padding)
PaddingSupportnull can be provided to set an empty [0,0,0,0] padding.setPadding in interface PaddingSupportpadding - new paddingpublic Painter getPainter()
public void setPainter(Painter painter)
painter - new separator painterpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicPopupMenuSeparatorUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicPopupMenuSeparatorUI