com.alee.managers.notification
Class NotificationsScreenLayout

java.lang.Object
  extended by com.alee.utils.swing.AbstractScreenLayout<java.awt.Window,java.lang.Object>
      extended by com.alee.managers.notification.NotificationsScreenLayout
All Implemented Interfaces:
ScreenLayout<java.awt.Window,java.lang.Object>, javax.swing.SwingConstants

public class NotificationsScreenLayout
extends AbstractScreenLayout<java.awt.Window,java.lang.Object>
implements javax.swing.SwingConstants

Custom screen layout for NotificationManager. It properly places notification windows on the screen.

Author:
Mikle Garin
See Also:
NotificationManager, NotificationsLayoutUtils

Field Summary
protected  java.awt.GraphicsDevice device
          Screen device this layout is attached to.
 
Fields inherited from class com.alee.utils.swing.AbstractScreenLayout
constraints, lock, windows
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
NotificationsScreenLayout()
          Constructing layout for default screen device.
NotificationsScreenLayout(java.awt.GraphicsDevice device)
          Constructing layout for specified screen device.
 
Method Summary
 void layoutScreen()
          Performs positioning and sizing of windows added into this ScreenLayout.
 
Methods inherited from class com.alee.utils.swing.AbstractScreenLayout
addWindow, addWindow, removeWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

device

protected final java.awt.GraphicsDevice device
Screen device this layout is attached to.

Constructor Detail

NotificationsScreenLayout

public NotificationsScreenLayout()
Constructing layout for default screen device.


NotificationsScreenLayout

public NotificationsScreenLayout(java.awt.GraphicsDevice device)
Constructing layout for specified screen device.

Parameters:
device - screen device to construct layout for
Method Detail

layoutScreen

public void layoutScreen()
Description copied from interface: ScreenLayout
Performs positioning and sizing of windows added into this ScreenLayout.

Specified by:
layoutScreen in interface ScreenLayout<java.awt.Window,java.lang.Object>