public enum InfoTipStyles extends java.lang.Enum<InfoTipStyles>
To ensure consistency of design between different instances of InfoTips, the contents of an InfoTip should adhere to the settings for each of the particular styles. The look of the InfoTip itself will automatically adjust to suit the given style.
Enum Constant and Description |
---|
CODE
An infoTip style for use above source code.
|
DEFAULT
A default InfoTip style for general use.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackgroundBorderColor() |
LinearGradientPainter |
getBackgroundPainter() |
java.awt.Insets |
getBorderInsets() |
java.awt.Color |
getContentTextColor() |
java.awt.Color |
getHyperLinkTextColor(boolean isHover) |
java.awt.Color |
getInternalBorderColor() |
java.awt.Color |
getItemTextColor() |
java.awt.Font |
getItemTitleFont() |
java.awt.Insets |
getItemTitleInsets() |
java.awt.Color |
getMoreTextColor() |
javax.swing.Icon |
scaleIcon(javax.swing.Icon originalIcon)
Some infotip styles scale their internal icons to be slightly smaller so the tip is more compact.
|
static InfoTipStyles |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InfoTipStyles[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InfoTipStyles DEFAULT
public static final InfoTipStyles CODE
public static InfoTipStyles[] values()
for (InfoTipStyles c : InfoTipStyles.values()) System.out.println(c);
public static InfoTipStyles valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic LinearGradientPainter getBackgroundPainter()
public java.awt.Color getBackgroundBorderColor()
public java.awt.Color getInternalBorderColor()
public javax.swing.Icon scaleIcon(javax.swing.Icon originalIcon)
originalIcon
- public java.awt.Font getItemTitleFont()
public java.awt.Insets getItemTitleInsets()
public java.awt.Insets getBorderInsets()
public java.awt.Color getContentTextColor()
public java.awt.Color getItemTextColor()
public java.awt.Color getMoreTextColor()
public java.awt.Color getHyperLinkTextColor(boolean isHover)
isHover
- the color may be different if the mouse is hovering over the hyperlink