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 TypeMethodDescriptionfloatgetAlpha()Get the alpha that should be applied to a notification where the mouse is not overGet theIBackgroundthat should be applied to the notificationGet theICloseButtonthat 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 theIOverlaythat should be applied to the notificationGet the font for the titleGet the title font color of the notificationintgetWidth()The width of the notificationintGet 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 theIBackgroundthat should be applied to the notification- Returns:
- the
IBackgroundof the notification
-
getOverlay
IOverlay getOverlay()Get theIOverlaythat should be applied to the notification- Returns:
- The
IOverlayof the notification
-
getCloseButton
ICloseButton getCloseButton()Get theICloseButtonthat should be applied to the notification- Returns:
- The
ICloseButtonof 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
-