public class NotifyTheme
extends java.lang.Object
NotifyTheme defines the aspect of a desktop notification. You
can specify custom colors, icons and fonts to use instead of the two default
themes.
By the way, the default themes included are NotifyTheme.Dark
and NotifyTheme.Light.| Modifier and Type | Class and Description |
|---|---|
static class |
NotifyTheme.DarkTheme
The default Dark theme.
|
static class |
NotifyTheme.LightTheme
The default Light theme.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color[] |
bgGrad
The colors to use to paint the background
|
protected java.awt.Color |
borderColor
The color to use to paint the notification border
|
protected java.awt.Color |
contentColor
The color to use to paint the description text
|
protected java.awt.Font |
contentFont
The font to use in the description text
|
static NotifyTheme |
Dark
The default Dark theme
|
static java.awt.Image[] |
defaultIconSet
The default set of icons
|
protected java.awt.Image[] |
iconSet
The set of icons to use for each notification type
|
static NotifyTheme |
Light
The default Light theme
|
protected java.awt.Color |
titleColor
The color to use to paint the title
|
protected java.awt.Font |
titleFont
The font to use in titles
|
| Constructor and Description |
|---|
NotifyTheme() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color[] |
getBgGrad() |
java.awt.Color |
getBorderColor() |
java.awt.Font |
getContentFont() |
java.awt.Image[] |
getIconSet() |
java.awt.Font |
getTitleFont() |
void |
setBgGrad(java.awt.Color base,
java.awt.Color highlight)
Allows to define the background color in a notification.
|
void |
setBorderColor(java.awt.Color notifBorder)
Allows to set a color for the borders of the notification.
|
void |
setContentFont(java.awt.Font contentFont)
Allows to set a font to be used for texts.
|
void |
setIconSet(java.awt.Image[] iconSet)
Allows to set a collection of icons to be used in this theme.
|
void |
setTitleFont(java.awt.Font titleFont)
Allows to set a font to be used for texts.
|
protected java.awt.Font titleFont
protected java.awt.Font contentFont
protected java.awt.Color borderColor
protected java.awt.Color titleColor
protected java.awt.Color contentColor
protected java.awt.Color[] bgGrad
protected java.awt.Image[] iconSet
public static final NotifyTheme Dark
public static final NotifyTheme Light
public static final java.awt.Image[] defaultIconSet
public java.awt.Color[] getBgGrad()
public void setBgGrad(java.awt.Color base,
java.awt.Color highlight)
base - The regular background color.highlight - The color to apply a gradient with when the mouse
pointer is on the notification.public java.awt.Font getContentFont()
public void setContentFont(java.awt.Font contentFont)
contentFont - the font which will be used for texts.public java.awt.Image[] getIconSet()
public void setIconSet(java.awt.Image[] iconSet)
iconSet - An array containing the set of icons which will be used in
this theme.public java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color notifBorder)
notifBorder - The color of the border to be used in this theme.public java.awt.Font getTitleFont()
public void setTitleFont(java.awt.Font titleFont)
titleFont - the font which will be used for titles.