|
||||||||||
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.ButtonUI javax.swing.plaf.basic.BasicButtonUI com.alee.laf.button.WebButtonUI com.alee.extended.button.WebSplitButtonUI
public class WebSplitButtonUI
Custom UI for WebSplitButton component. This UI is based on WebButtonUI and simply adds a few features.
Field Summary | |
---|---|
protected int |
contentGap
|
protected javax.swing.ImageIcon |
splitIcon
Style settings. |
protected int |
splitIconGap
|
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI |
---|
defaultTextIconGap, defaultTextShiftOffset |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
WebSplitButtonUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebSplitButtonUI for the specified component. |
protected java.awt.Insets |
getBorderInsets()
Returns component border insets used for WebLaF border. |
int |
getContentGap()
Returns gap between split part and button content. |
java.awt.Rectangle |
getSplitButtonBounds(javax.swing.JComponent c)
Returns bounds of the split button part. |
java.awt.Rectangle |
getSplitButtonHitbox(javax.swing.JComponent c)
Returns split button part hitbox. |
javax.swing.ImageIcon |
getSplitIcon()
Returns split button icon. |
int |
getSplitIconGap()
Returns gap between split icon and split part sides. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
void |
setContentGap(int contentGap)
Sets gap between split part and button content. |
void |
setSplitIcon(javax.swing.ImageIcon splitIcon)
Sets split button icon |
void |
setSplitIconGap(int splitIconGap)
Sets gap between split icon and split part sides |
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
---|
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installDefaults, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.ImageIcon splitIcon
protected int splitIconGap
protected int contentGap
Constructor Detail |
---|
public WebSplitButtonUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
public javax.swing.ImageIcon getSplitIcon()
public void setSplitIcon(javax.swing.ImageIcon splitIcon)
splitIcon
- new split button iconpublic int getSplitIconGap()
public void setSplitIconGap(int splitIconGap)
splitIconGap
- gap between split icon and split part sidespublic int getContentGap()
public void setContentGap(int contentGap)
contentGap
- gap between split part and button contentprotected java.awt.Insets getBorderInsets()
getBorderInsets
in class WebButtonUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class WebButtonUI
public java.awt.Rectangle getSplitButtonBounds(javax.swing.JComponent c)
c
- split button
public java.awt.Rectangle getSplitButtonHitbox(javax.swing.JComponent c)
c
- split button
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |