|
||||||||||
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
public class WebButtonUI
Field Summary | |
---|---|
protected javax.swing.event.AncestorListener |
ancestorListener
|
protected boolean |
animate
|
protected WebTimer |
animator
|
protected java.awt.Color |
bottomBgColor
|
protected java.awt.Color |
bottomSelectedBgColor
|
protected javax.swing.AbstractButton |
button
|
protected boolean |
drawBottom
|
protected boolean |
drawBottomLine
|
protected boolean |
drawFocus
|
protected boolean |
drawLeft
|
protected boolean |
drawLeftLine
|
protected boolean |
drawRight
|
protected boolean |
drawRightLine
|
protected boolean |
drawShade
|
protected boolean |
drawTop
|
protected boolean |
drawTopLine
|
protected java.awt.Color |
innerShadeColor
|
protected int |
innerShadeWidth
|
protected int |
leftRightSpacing
|
protected java.awt.Insets |
margin
|
protected java.awt.event.MouseAdapter |
mouseAdapter
|
protected java.awt.Point |
mousePoint
|
protected boolean |
moveIconOnPress
|
protected boolean |
oldBorderPainted
|
protected boolean |
oldContentAreaFilled
|
protected boolean |
oldFocusable
|
protected boolean |
oldFocusPainted
|
protected Painter |
painter
|
protected java.beans.PropertyChangeListener |
propertyChangeListener
|
protected boolean |
rollover
|
protected boolean |
rolloverDarkBorderOnly
|
protected boolean |
rolloverDecoratedOnly
|
protected boolean |
rolloverShadeOnly
|
protected boolean |
rolloverShine
|
protected int |
round
|
protected java.awt.Color |
selectedForeground
|
protected java.awt.Color |
shadeColor
|
protected boolean |
shadeToggleIcon
|
protected float |
shadeToggleIconTransparency
|
protected int |
shadeWidth
|
protected java.awt.Color |
shineColor
|
protected boolean |
showDisabledShade
|
protected java.awt.Color |
topBgColor
todo 1. |
protected java.awt.Color |
topSelectedBgColor
|
protected float |
transparency
|
protected java.awt.Color |
transparentShineColor
|
protected boolean |
undecorated
|
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 | |
---|---|
WebButtonUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
protected java.awt.Insets |
getBorderInsets()
Returns component border insets used for WebLaF border. |
java.awt.Color |
getBottomBgColor()
|
java.awt.Color |
getBottomSelectedBgColor()
|
protected java.awt.Shape |
getButtonShape(javax.swing.AbstractButton button,
boolean border)
|
java.awt.Color |
getInnerShadeColor()
|
int |
getInnerShadeWidth()
|
int |
getLeftRightSpacing()
|
java.awt.Insets |
getMargin()
|
Painter |
getPainter()
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
int |
getRound()
|
java.awt.Color |
getSelectedForeground()
|
java.awt.Color |
getShadeColor()
|
float |
getShadeToggleIconTransparency()
|
int |
getShadeWidth()
|
java.awt.Color |
getShineColor()
|
java.awt.Color |
getTopBgColor()
|
java.awt.Color |
getTopSelectedBgColor()
|
void |
installUI(javax.swing.JComponent c)
|
protected boolean |
isAfterEnabledButton(javax.swing.AbstractButton button)
Returns whether this button placed after another enabled button inside a WebButtonGroup container or not. |
boolean |
isAnimate()
|
protected boolean |
isBeforeEnabledButton(javax.swing.AbstractButton button)
Returns whether this button placed before another enabled button inside a WebButtonGroup container or not. |
boolean |
isDrawBottom()
|
boolean |
isDrawBottomLine()
|
boolean |
isDrawFocus()
|
boolean |
isDrawLeft()
|
boolean |
isDrawLeftLine()
|
boolean |
isDrawRight()
|
boolean |
isDrawRightLine()
|
boolean |
isDrawShade()
|
boolean |
isDrawTop()
|
boolean |
isDrawTopLine()
|
protected boolean |
isInButtonGroup(javax.swing.AbstractButton button)
Returns whether this button is inside WebButtonGroup or not. |
boolean |
isMoveIconOnPress()
|
boolean |
isRollover()
|
boolean |
isRolloverDarkBorderOnly()
|
boolean |
isRolloverDecoratedOnly()
|
boolean |
isRolloverShadeOnly()
|
boolean |
isRolloverShine()
|
boolean |
isShadeToggleIcon()
|
boolean |
isShowDisabledShade()
|
boolean |
isUndecorated()
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
paintIcon(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle iconRect)
|
protected void |
paintText(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle textRect,
java.lang.String text)
|
java.awt.Shape |
provideShape()
Returns component shape. |
void |
setAnimate(boolean animate)
|
void |
setBottomBgColor(java.awt.Color bottomBgColor)
|
void |
setBottomSelectedBgColor(java.awt.Color bottomSelectedBgColor)
|
void |
setDrawBottom(boolean drawBottom)
|
void |
setDrawBottomLine(boolean drawBottomLine)
|
void |
setDrawFocus(boolean drawFocus)
|
void |
setDrawLeft(boolean drawLeft)
|
void |
setDrawLeftLine(boolean drawLeftLine)
|
void |
setDrawLines(boolean top,
boolean left,
boolean bottom,
boolean right)
|
void |
setDrawRight(boolean drawRight)
|
void |
setDrawRightLine(boolean drawRightLine)
|
void |
setDrawShade(boolean drawShade)
|
void |
setDrawSides(boolean top,
boolean left,
boolean bottom,
boolean right)
|
void |
setDrawTop(boolean drawTop)
|
void |
setDrawTopLine(boolean drawTopLine)
|
void |
setInnerShadeColor(java.awt.Color innerShadeColor)
|
void |
setInnerShadeWidth(int innerShadeWidth)
|
void |
setLeftRightSpacing(int leftRightSpacing)
|
void |
setMargin(java.awt.Insets margin)
|
void |
setMoveIconOnPress(boolean moveIconOnPress)
|
void |
setPainter(Painter painter)
|
void |
setRolloverDarkBorderOnly(boolean rolloverDarkBorderOnly)
|
void |
setRolloverDecoratedOnly(boolean rolloverDecoratedOnly)
|
void |
setRolloverShadeOnly(boolean rolloverShadeOnly)
|
void |
setRolloverShine(boolean rolloverShine)
|
void |
setRound(int round)
|
void |
setSelectedForeground(java.awt.Color selectedForeground)
|
void |
setShadeColor(java.awt.Color shadeColor)
|
void |
setShadeToggleIcon(boolean shadeToggleIcon)
|
void |
setShadeToggleIconTransparency(float shadeToggleIconTransparency)
|
void |
setShadeWidth(int shadeWidth)
|
void |
setShineColor(java.awt.Color shineColor)
|
void |
setShowDisabledShade(boolean showDisabledShade)
|
void |
setTopBgColor(java.awt.Color topBgColor)
|
void |
setTopSelectedBgColor(java.awt.Color topSelectedBgColor)
|
void |
setUndecorated(boolean undecorated)
|
void |
uninstallUI(javax.swing.JComponent c)
|
void |
updateBorder()
Updates custom WebLaF border. |
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 java.awt.Color topBgColor
protected java.awt.Color bottomBgColor
protected java.awt.Color topSelectedBgColor
protected java.awt.Color bottomSelectedBgColor
protected java.awt.Color selectedForeground
protected boolean rolloverShine
protected java.awt.Color shineColor
protected boolean rolloverDarkBorderOnly
protected int round
protected boolean drawShade
protected boolean rolloverShadeOnly
protected boolean showDisabledShade
protected int shadeWidth
protected java.awt.Insets margin
protected java.awt.Color shadeColor
protected int innerShadeWidth
protected java.awt.Color innerShadeColor
protected int leftRightSpacing
protected boolean shadeToggleIcon
protected float shadeToggleIconTransparency
protected boolean drawFocus
protected boolean rolloverDecoratedOnly
protected boolean animate
protected boolean undecorated
protected Painter painter
protected boolean moveIconOnPress
protected boolean drawTop
protected boolean drawLeft
protected boolean drawBottom
protected boolean drawRight
protected boolean drawTopLine
protected boolean drawLeftLine
protected boolean drawBottomLine
protected boolean drawRightLine
protected java.awt.Color transparentShineColor
protected boolean rollover
protected float transparency
protected java.awt.Point mousePoint
protected WebTimer animator
protected javax.swing.AbstractButton button
protected boolean oldFocusPainted
protected boolean oldContentAreaFilled
protected boolean oldBorderPainted
protected boolean oldFocusable
protected java.awt.event.MouseAdapter mouseAdapter
protected javax.swing.event.AncestorListener ancestorListener
protected java.beans.PropertyChangeListener propertyChangeListener
Constructor Detail |
---|
public WebButtonUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicButtonUI
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicButtonUI
public java.awt.Shape provideShape()
ShapeProvider
provideShape
in interface ShapeProvider
public java.awt.Color getTopBgColor()
public void setTopBgColor(java.awt.Color topBgColor)
public java.awt.Color getBottomBgColor()
public void setBottomBgColor(java.awt.Color bottomBgColor)
public java.awt.Color getTopSelectedBgColor()
public void setTopSelectedBgColor(java.awt.Color topSelectedBgColor)
public java.awt.Color getBottomSelectedBgColor()
public void setBottomSelectedBgColor(java.awt.Color bottomSelectedBgColor)
public java.awt.Color getSelectedForeground()
public void setSelectedForeground(java.awt.Color selectedForeground)
public boolean isRolloverDarkBorderOnly()
public void setRolloverDarkBorderOnly(boolean rolloverDarkBorderOnly)
public boolean isRolloverShine()
public void setRolloverShine(boolean rolloverShine)
public java.awt.Color getShineColor()
public void setShineColor(java.awt.Color shineColor)
public void updateBorder()
updateBorder
in interface BorderMethods
protected java.awt.Insets getBorderInsets()
public boolean isDrawShade()
public void setDrawShade(boolean drawShade)
public boolean isRolloverShadeOnly()
public void setRolloverShadeOnly(boolean rolloverShadeOnly)
public boolean isShowDisabledShade()
public void setShowDisabledShade(boolean showDisabledShade)
public int getShadeWidth()
public void setShadeWidth(int shadeWidth)
public java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
public java.awt.Color getShadeColor()
public void setShadeColor(java.awt.Color shadeColor)
public int getInnerShadeWidth()
public void setInnerShadeWidth(int innerShadeWidth)
public java.awt.Color getInnerShadeColor()
public void setInnerShadeColor(java.awt.Color innerShadeColor)
public int getLeftRightSpacing()
public void setLeftRightSpacing(int leftRightSpacing)
public int getRound()
public void setRound(int round)
public boolean isShadeToggleIcon()
public void setShadeToggleIcon(boolean shadeToggleIcon)
public float getShadeToggleIconTransparency()
public void setShadeToggleIconTransparency(float shadeToggleIconTransparency)
public boolean isUndecorated()
public void setUndecorated(boolean undecorated)
public Painter getPainter()
public void setPainter(Painter painter)
public boolean isMoveIconOnPress()
public void setMoveIconOnPress(boolean moveIconOnPress)
public boolean isRolloverDecoratedOnly()
public void setRolloverDecoratedOnly(boolean rolloverDecoratedOnly)
public boolean isAnimate()
public void setAnimate(boolean animate)
public boolean isDrawFocus()
public void setDrawFocus(boolean drawFocus)
public boolean isDrawBottom()
public void setDrawBottom(boolean drawBottom)
public boolean isDrawLeft()
public void setDrawLeft(boolean drawLeft)
public boolean isDrawRight()
public void setDrawRight(boolean drawRight)
public boolean isDrawTop()
public void setDrawTop(boolean drawTop)
public void setDrawSides(boolean top, boolean left, boolean bottom, boolean right)
public boolean isDrawTopLine()
public void setDrawTopLine(boolean drawTopLine)
public boolean isDrawLeftLine()
public void setDrawLeftLine(boolean drawLeftLine)
public boolean isDrawBottomLine()
public void setDrawBottomLine(boolean drawBottomLine)
public boolean isDrawRightLine()
public void setDrawRightLine(boolean drawRightLine)
public void setDrawLines(boolean top, boolean left, boolean bottom, boolean right)
public boolean isRollover()
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicButtonUI
protected boolean isAfterEnabledButton(javax.swing.AbstractButton button)
button
- this button
protected boolean isBeforeEnabledButton(javax.swing.AbstractButton button)
button
- this button
protected boolean isInButtonGroup(javax.swing.AbstractButton button)
button
- this button
protected void paintText(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle textRect, java.lang.String text)
paintText
in class javax.swing.plaf.basic.BasicButtonUI
protected void paintIcon(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle iconRect)
paintIcon
in class javax.swing.plaf.basic.BasicButtonUI
protected java.awt.Shape getButtonShape(javax.swing.AbstractButton button, boolean border)
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.basic.BasicButtonUI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |