Class NotificationBuilder

java.lang.Object
ch.swingfx.twinkle.NotificationBuilder

public class NotificationBuilder extends Object
This class lets you build a notification window.
  • Field Details

    • version

      private static final int version
      version of the library
      See Also:
    • ANIMATION_FADE_IN_DURATION

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

      private static final int ANIMATION_FADE_OUT_DURATION
      Duration of the fade out animation in milliseconds
      See Also:
    • 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:
    • 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:
    • fId

      private final UUID fId
    • fIcon

      private Icon fIcon
      The Icon we want to display
    • fTitle

      private String fTitle
      The title we want to display
    • fMessage

      private String fMessage
      The message we want to display
    • fDisplayTime

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

      private INotificationEventListener fNotificationListener
      Listener that receives notification events
    • fStyle

      private INotificationStyle fStyle
      styling for our window
    • 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
    • fManager

      private INotificationManager fManager
      The manager that shows the notifications
    • sWindowApi

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

      private static final GraphicsDevice sMainScreen
    • sMainScreenGraphicsConfiguration

      private static final GraphicsConfiguration sMainScreenGraphicsConfiguration
    • sMainScreenSize

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

      private static Insets sMainScreenInsets
      Insets of menu/task bars
    • sToolkit

      private static final Toolkit sToolkit
  • Constructor Details

    • NotificationBuilder

      public NotificationBuilder()
  • Method Details