|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.SeparatorUI javax.swing.plaf.basic.BasicSeparatorUI javax.swing.plaf.basic.BasicPopupMenuSeparatorUI com.alee.laf.menu.WebPopupMenuSeparatorUI
public class WebPopupMenuSeparatorUI
Custom UI for JPopupMenu.Separator component.
Field Summary | |
---|---|
protected java.awt.Color |
color
Style settings. |
protected int |
sideSpacing
|
protected int |
spacing
|
protected java.awt.Stroke |
stroke
|
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI |
---|
highlight, shadow |
Constructor Summary | |
---|---|
WebPopupMenuSeparatorUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebPopupMenuSeparatorUI for the specified component. |
java.awt.Color |
getColor()
Returns separator color. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Returns preferred separator size. |
int |
getSideSpacing()
Returns separator side spacing. |
int |
getSpacing()
Returns separator upper and lower spacing. |
java.awt.Stroke |
getStroke()
Returns separator stroke. |
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paints popup menu separator. |
void |
setColor(java.awt.Color color)
Sets separator color. |
void |
setSideSpacing(int sideSpacing)
Sets separator side spacing. |
void |
setSpacing(int spacing)
Sets separator upper and lower spacing. |
void |
setStroke(java.awt.Stroke stroke)
Sets separator stroke. |
Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI |
---|
getMaximumSize, getMinimumSize, installDefaults, installListeners, uninstallDefaults, uninstallListeners, uninstallUI |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.Color color
protected java.awt.Stroke stroke
protected int spacing
protected int sideSpacing
Constructor Detail |
---|
public WebPopupMenuSeparatorUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicSeparatorUI
c
- component for this UIpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- new separator colorpublic java.awt.Stroke getStroke()
public void setStroke(java.awt.Stroke stroke)
stroke
- new separator strokepublic int getSpacing()
public void setSpacing(int spacing)
spacing
- new separator upper and lower spacingpublic int getSideSpacing()
public void setSideSpacing(int sideSpacing)
sideSpacing
- new separator side spacingpublic void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicPopupMenuSeparatorUI
g
- graphics contextc
- separator componentpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.basic.BasicPopupMenuSeparatorUI
c
- separator component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |