Package ch.swingfx.twinkle.style
Interface INotificationStyle
- All Known Implementing Classes:
AbstractNotificationStyle
,DarkDefaultNotification
,LightDefaultNotification
public interface INotificationStyle
Provides styling for the notification
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getAlpha()
Get the alpha that should be applied to a notification where the mouse is not overGet theIBackground
that should be applied to the notificationGet theICloseButton
that should be applied to the notificationGet a map of custom parametersGet the font for the messageGet the message font color of the notificationGet the notification window creatorGet theIOverlay
that should be applied to the notificationGet the font for the titleGet the title font color of the notificationint
getWidth()
The width of the notificationint
Get the radius of the window cornerGet the insets of the notification window
-
Method Details
-
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
Color getTitleFontColor()Get the title font color of the notification- Returns:
- the font color of the notification
-
getTitleFont
Font getTitleFont()Get the font for the title- Returns:
- the font for the title
-
getMessageFontColor
Color getMessageFontColor()Get the message font color of the notification- Returns:
- the message font color of the notification
-
getMessageFont
Font getMessageFont()Get the font for the message- Returns:
- the font for the message
-
getWindowInsets
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
Get a map of custom parameters- Returns:
- a map of custom parameters
-