Class NotificationBuilder


  • public class NotificationBuilder
    extends java.lang.Object
    This class lets you build a notification window.
    • Field Detail

      • ANIMATION_FADE_IN_DURATION

        private static final int ANIMATION_FADE_IN_DURATION
        Duration of the fade in animation in milliseconds
        See Also:
        Constant Field Values
      • ANIMATION_FADE_OUT_DURATION

        private static final int ANIMATION_FADE_OUT_DURATION
        Duration of the fade out animation in milliseconds
        See Also:
        Constant Field Values
      • ANIMATION_FADE_IN_START_DELAY

        private static final int ANIMATION_FADE_IN_START_DELAY
        delay before we start the fade in animation because of flickering on some systems/jres.
        See Also:
        Constant Field Values
      • DEFAULT_DISPLAY_TIME_IN_MILLIS

        private static final int DEFAULT_DISPLAY_TIME_IN_MILLIS
        The default display time for a notification in milliseconds
        See Also:
        Constant Field Values
      • fIcon

        private javax.swing.Icon fIcon
        The Icon we want to display
      • fTitle

        private java.lang.String fTitle
        The title we want to display
      • fMessage

        private java.lang.String fMessage
        The message we want to display
      • fDisplayTime

        private int fDisplayTime
        Time in millis we want to display the notification
      • fPosition

        private IPosition fPosition
        Position of the notification
      • fFadeIn

        private boolean fFadeIn
        Flag that tells us if we should fade in the notification
      • fFadeOut

        private boolean fFadeOut
        Flag that tells us if we should fade out the notification
      • fWindowClosed

        private boolean fWindowClosed
        Flag that tells us if the window is closed or not
      • sWindowApi

        private static final ch.swingfx.window.translucentandshaped.ITranslucentAndShapedWindowApi sWindowApi
        api for Translucent and Shaped Windows
      • sMainScreen

        private static final java.awt.GraphicsDevice sMainScreen
      • sMainScreenGraphicsConfiguration

        private static final java.awt.GraphicsConfiguration sMainScreenGraphicsConfiguration
      • sMainScreenSize

        private static final java.awt.Dimension sMainScreenSize
        The size of the main screen including all the menu/task bars
      • sMainScreenInsets

        private static java.awt.Insets sMainScreenInsets
        Insets of menu/task bars
      • sToolkit

        private static final java.awt.Toolkit sToolkit
    • Constructor Detail

      • NotificationBuilder

        public NotificationBuilder()