Package ch.swingfx.twinkle.style
Interface INotificationStyle
-
- All Known Implementing Classes:
AbstractNotificationStyle,DarkDefaultNotification,LightDefaultNotification
public interface INotificationStyleProvides styling for the notification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetAlpha()Get the alpha that should be applied to a notification where the mouse is not overIBackgroundgetBackground()Get theIBackgroundthat should be applied to the notificationICloseButtongetCloseButton()Get theICloseButtonthat should be applied to the notificationjava.util.Map<java.lang.String,java.lang.Object>getCustomParams()Get a map of custom parametersjava.awt.FontgetMessageFont()Get the font for the messagejava.awt.ColorgetMessageFontColor()Get the message font color of the notificationICreateNotificationWindowgetNotificationWindowCreator()Get the notification window creatorIOverlaygetOverlay()Get theIOverlaythat should be applied to the notificationjava.awt.FontgetTitleFont()Get the font for the titlejava.awt.ColorgetTitleFontColor()Get the title font color of the notificationintgetWidth()The width of the notificationintgetWindowCornerRadius()Get the radius of the window cornerjava.awt.InsetsgetWindowInsets()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 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
java.util.Map<java.lang.String,java.lang.Object> getCustomParams()
Get a map of custom parameters- Returns:
- a map of custom parameters
-
-