Package ch.swingfx.twinkle.style
Interface INotificationStyle
-
- All Known Implementing Classes:
AbstractNotificationStyle
,DarkDefaultNotification
,LightDefaultNotification
public interface INotificationStyle
Provides styling for the notification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getAlpha()
Get the alpha that should be applied to a notification where the mouse is not overIBackground
getBackground()
Get theIBackground
that should be applied to the notificationICloseButton
getCloseButton()
Get theICloseButton
that should be applied to the notificationjava.util.Map<java.lang.String,java.lang.Object>
getCustomParams()
Get a map of custom parametersjava.awt.Font
getMessageFont()
Get the font for the messagejava.awt.Color
getMessageFontColor()
Get the message font color of the notificationICreateNotificationWindow
getNotificationWindowCreator()
Get the notification window creatorIOverlay
getOverlay()
Get theIOverlay
that should be applied to the notificationjava.awt.Font
getTitleFont()
Get the font for the titlejava.awt.Color
getTitleFontColor()
Get the title font color of the notificationint
getWidth()
The width of the notificationint
getWindowCornerRadius()
Get the radius of the window cornerjava.awt.Insets
getWindowInsets()
Get the insets of the notification window
-
-
-
Method Detail
-
getWidth
int getWidth()
The width of the notification- Returns:
- The width of the notification
-
getWindowCornerRadius
int getWindowCornerRadius()
Get the radius of the window corner- Returns:
- the radius of the window corner
-
getTitleFontColor
java.awt.Color getTitleFontColor()
Get the title font color of the notification- Returns:
- the font color of the notification
-
getTitleFont
java.awt.Font getTitleFont()
Get the font for the title- Returns:
- the font for the title
-
getMessageFontColor
java.awt.Color getMessageFontColor()
Get the message font color of the notification- Returns:
- the message font color of the notification
-
getMessageFont
java.awt.Font getMessageFont()
Get the font for the message- Returns:
- the font for the message
-
getWindowInsets
java.awt.Insets getWindowInsets()
Get the insets of the notification window- Returns:
- the insets of the notification window
-
getAlpha
float getAlpha()
Get the alpha that should be applied to a notification where the mouse is not over- Returns:
- the alpha of the notification window
-
getBackground
IBackground getBackground()
Get theIBackground
that should be applied to the notification- Returns:
- the
IBackground
of the notification
-
getOverlay
IOverlay getOverlay()
Get theIOverlay
that should be applied to the notification- Returns:
- The
IOverlay
of the notification
-
getCloseButton
ICloseButton getCloseButton()
Get theICloseButton
that should be applied to the notification- Returns:
- The
ICloseButton
of the notification
-
getNotificationWindowCreator
ICreateNotificationWindow getNotificationWindowCreator()
Get the notification window creator- Returns:
- the notification window creator
-
getCustomParams
java.util.Map<java.lang.String,java.lang.Object> getCustomParams()
Get a map of custom parameters- Returns:
- a map of custom parameters
-
-