com.alee.managers.tooltip
Class WebCustomTooltipStyle

java.lang.Object
  extended by com.alee.managers.tooltip.WebCustomTooltipStyle

public final class WebCustomTooltipStyle
extends java.lang.Object

WebCustomTooltip style class.

Author:
Mikle Garin

Field Summary
static java.awt.Color borderColor
          Tooltip border color.
static java.awt.Color bottomBgColor
          Tooltip bottom background color.
static int contentSpacing
          Spacing between tooltip border and tooltip content.
static int cornerLength
          Tooltip "corner" element length.
static int cornerSideX
          Tooltip "corner" element side width.
static boolean defaultCloseBehavior
          Whether tooltip should use default close behavior () or allow user to define his own close behavior.
static TooltipWay displayWay
          Default tooltip display way.
static int fadeFps
          Frames per second in tooltip fade animation.
static long fadeTime
          Time in milliseconds that tooltip takes to fade in or fade out.
static java.awt.Color hotkeyColor
          Hotkey text color.
static int hotkeyLocation
          Hotkey location inside the tooltip.
static int leftRightSpacing
          Additional left and right sides content spacing.
static int round
          Tooltip corners rounding.
static java.awt.Color shadeColor
          Decoration shade color.
static ShadeType shadeType
          Decoration shade type.
static int shadeWidth
          Decoration shade width.
static boolean showHotkey
          Whether to show component hotkeys information at the right side of the tooltip or not.
static java.awt.Color textColor
          Tooltip text color.
static java.awt.Color topBgColor
          Tooltip top background color.
static float trasparency
          Tooltip background trasparency.
static int windowSideSpacing
          Minimal spacing between window edge and tooltip.
 
Constructor Summary
WebCustomTooltipStyle()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fadeFps

public static int fadeFps
Frames per second in tooltip fade animation.


fadeTime

public static long fadeTime
Time in milliseconds that tooltip takes to fade in or fade out.


cornerLength

public static int cornerLength
Tooltip "corner" element length.


cornerSideX

public static int cornerSideX
Tooltip "corner" element side width.


displayWay

public static TooltipWay displayWay
Default tooltip display way. If set to null - best display way will be calculated each time tooltip shown.


showHotkey

public static boolean showHotkey
Whether to show component hotkeys information at the right side of the tooltip or not. Only non-hidden hotkeys information will be displayed.


hotkeyLocation

public static int hotkeyLocation
Hotkey location inside the tooltip. It might have either SwingConstants.LEFT, RIGHT, LEADING or TRAILING value.


defaultCloseBehavior

public static boolean defaultCloseBehavior
Whether tooltip should use default close behavior () or allow user to define his own close behavior. Default behavior is when tooltip closes when cursor leave component area, or when any mouse/key press occurs.


contentSpacing

public static int contentSpacing
Spacing between tooltip border and tooltip content.


leftRightSpacing

public static int leftRightSpacing
Additional left and right sides content spacing. This is basically used to improve text readability in tooltips.


windowSideSpacing

public static int windowSideSpacing
Minimal spacing between window edge and tooltip. Used to avoid tooltips falling behind the window edge when shown close to it.


round

public static int round
Tooltip corners rounding.


shadeType

public static ShadeType shadeType
Decoration shade type.


shadeWidth

public static int shadeWidth
Decoration shade width.


shadeColor

public static java.awt.Color shadeColor
Decoration shade color.


borderColor

public static java.awt.Color borderColor
Tooltip border color. When set to null border won't be drawn at all.


topBgColor

public static java.awt.Color topBgColor
Tooltip top background color. When set to null background won't be drawn at all.


bottomBgColor

public static java.awt.Color bottomBgColor
Tooltip bottom background color. When set to null background will be filled with topBgColor.


textColor

public static java.awt.Color textColor
Tooltip text color.


hotkeyColor

public static java.awt.Color hotkeyColor
Hotkey text color.


trasparency

public static float trasparency
Tooltip background trasparency.

Constructor Detail

WebCustomTooltipStyle

public WebCustomTooltipStyle()