com.alee.extended.checkbox
Class WebTristateCheckBoxUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by javax.swing.plaf.basic.BasicToggleButtonUI
                  extended by javax.swing.plaf.basic.BasicRadioButtonUI
                      extended by javax.swing.plaf.basic.BasicCheckBoxUI
                          extended by com.alee.laf.checkbox.WebCheckBoxUI
                              extended by com.alee.extended.checkbox.WebTristateCheckBoxUI
All Implemented Interfaces:
ShapeProvider

public class WebTristateCheckBoxUI
extends WebCheckBoxUI

Custom UI for WebTristateCheckBox component.

Author:
Mikle Garin

Nested Class Summary
 
Nested classes/interfaces inherited from class com.alee.laf.checkbox.WebCheckBoxUI
WebCheckBoxUI.CheckBoxIcon
 
Field Summary
 
Fields inherited from class com.alee.laf.checkbox.WebCheckBoxUI
animated, bgDarkness, bgTimer, borderColor, borderStroke, bottomBgColor, bottomSelectedBgColor, checkBox, checkIcon, checking, checkTimer, darkBorderColor, disabledBorderColor, enabledStateListener, fractions, iconHeight, iconRect, iconWidth, itemListener, margin, MAX_DARKNESS, modelChangeListener, mouseAdapter, rollover, rolloverDarkBorderOnly, round, shadeWidth, topBgColor, topSelectedBgColor, UPDATE_DELAY
 
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
WebTristateCheckBoxUI()
           
 
Method Summary
protected  CheckIcon createCheckStateIcon()
          Creates check state icon.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Returns an instance of the WebTristateCheckBoxUI for the specified component.
protected  WebTristateCheckBox getTristateCheckbox()
          Returns tristate checkbox which uses this UI.
 void installUI(javax.swing.JComponent c)
          Installs UI in the specified component.
protected  void performStateChanged()
          Performs visual state change.
 
Methods inherited from class com.alee.laf.checkbox.WebCheckBoxUI
createIcon, getBgColors, getBgDarkness, getBorderColor, getBottomBgColor, getBottomSelectedBgColor, getDarkBorderColor, getDisabledBorderColor, getIconHeight, getIconRect, getIconWidth, getMargin, getRound, getShadeWidth, getTopBgColor, getTopSelectedBgColor, installEnabledStateListeners, installRolloverListeners, installStateChangeListeners, isAnimated, isAnimatedByDefault, isAnimationAllowed, isRolloverDarkBorderOnly, paint, paintCheckIcon, paintIcon, paintIconBackground, paintText, provideShape, setAnimated, setBorderColor, setBottomBgColor, setBottomSelectedBgColor, setDarkBorderColor, setDisabledBorderColor, setIconHeight, setIconWidth, setMargin, setRolloverDarkBorderOnly, setRound, setShadeWidth, setTopBgColor, setTopSelectedBgColor, uninstallEnabledStateListeners, uninstallRolloverListeners, uninstallStateChangeListeners, uninstallUI, updateBorder
 
Methods inherited from class javax.swing.plaf.basic.BasicCheckBoxUI
getPropertyPrefix
 
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPreferredSize, installDefaults, paintFocus, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, 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
 

Constructor Detail

WebTristateCheckBoxUI

public WebTristateCheckBoxUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Returns an instance of the WebTristateCheckBoxUI for the specified component. This tricky method is used by UIManager to create component UIs when needed.

Parameters:
c - component that will use UI instance
Returns:
instance of the WebTristateCheckBoxUI

installUI

public void installUI(javax.swing.JComponent c)
Installs UI in the specified component.

Overrides:
installUI in class WebCheckBoxUI
Parameters:
c - component for this UI

getTristateCheckbox

protected WebTristateCheckBox getTristateCheckbox()
Returns tristate checkbox which uses this UI.

Returns:
tristate checkbox which uses this UI

createCheckStateIcon

protected CheckIcon createCheckStateIcon()
Creates check state icon.

Overrides:
createCheckStateIcon in class WebCheckBoxUI
Returns:
check state icon

performStateChanged

protected void performStateChanged()
Performs visual state change. In case animation is possible and enabled state change will be animated.

Overrides:
performStateChanged in class WebCheckBoxUI