public class WebSplitButtonUI extends WebButtonUI
| Modifier and Type | Field and Description |
|---|---|
protected int |
contentGap |
protected javax.swing.ImageIcon |
splitIcon
Style settings.
|
protected int |
splitIconGap |
ancestorListener, animate, animator, bottomBgColor, bottomSelectedBgColor, button, drawBottom, drawBottomLine, drawFocus, drawLeft, drawLeftLine, drawRight, drawRightLine, drawShade, drawTop, drawTopLine, innerShadeColor, innerShadeWidth, leftRightSpacing, margin, mouseAdapter, mousePoint, moveIconOnPress, oldBorderPainted, oldContentAreaFilled, oldFocusable, oldFocusPainted, painter, propertyChangeListener, rollover, rolloverDarkBorderOnly, rolloverDecoratedOnly, rolloverShadeOnly, rolloverShine, round, selectedForeground, shadeColor, shadeToggleIcon, shadeToggleIconTransparency, shadeWidth, shineColor, showDisabledShade, topBgColor, topSelectedBgColor, transparency, transparentShineColor, undecorated| Constructor and Description |
|---|
WebSplitButtonUI() |
| Modifier and Type | Method and Description |
|---|---|
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
|
getBottomBgColor, getBottomSelectedBgColor, getButtonShape, getInnerShadeColor, getInnerShadeWidth, getLeftRightSpacing, getMargin, getPainter, getPreferredSize, getRound, getSelectedForeground, getShadeColor, getShadeToggleIconTransparency, getShadeWidth, getShineColor, getTopBgColor, getTopSelectedBgColor, installUI, isAfterEnabledButton, isAnimate, isBeforeEnabledButton, isDrawBottom, isDrawBottomLine, isDrawFocus, isDrawLeft, isDrawLeftLine, isDrawRight, isDrawRightLine, isDrawShade, isDrawTop, isDrawTopLine, isInButtonGroup, isMoveIconOnPress, isRollover, isRolloverDarkBorderOnly, isRolloverDecoratedOnly, isRolloverShadeOnly, isRolloverShine, isShadeToggleIcon, isShowDisabledShade, isUndecorated, paintIcon, paintText, provideShape, setAnimate, setBottomBgColor, setBottomSelectedBgColor, setDrawBottom, setDrawBottomLine, setDrawFocus, setDrawLeft, setDrawLeftLine, setDrawLines, setDrawRight, setDrawRightLine, setDrawShade, setDrawSides, setDrawTop, setDrawTopLine, setInnerShadeColor, setInnerShadeWidth, setLeftRightSpacing, setMargin, setMoveIconOnPress, setPainter, setRolloverDarkBorderOnly, setRolloverDecoratedOnly, setRolloverShadeOnly, setRolloverShine, setRound, setSelectedForeground, setShadeColor, setShadeToggleIcon, setShadeToggleIconTransparency, setShadeWidth, setShineColor, setShowDisabledShade, setTopBgColor, setTopSelectedBgColor, setUndecorated, uninstallUI, updateBorderclearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installDefaults, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListenersprotected javax.swing.ImageIcon splitIcon
protected int splitIconGap
protected int contentGap
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic 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 WebButtonUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class WebButtonUIpublic java.awt.Rectangle getSplitButtonBounds(javax.swing.JComponent c)
c - split buttonpublic java.awt.Rectangle getSplitButtonHitbox(javax.swing.JComponent c)
c - split button