public class NotificationsScreenLayout extends AbstractScreenLayout<Window,Object> implements SwingConstants
NotificationManager
.
It properly places notification windows on the screen.NotificationManager
,
NotificationsLayoutUtils
Modifier and Type | Field and Description |
---|---|
protected GraphicsDevice |
device
Screen device this layout is attached to.
|
constraints, lock, windows
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
NotificationsScreenLayout()
Constructing layout for default screen device.
|
NotificationsScreenLayout(GraphicsDevice device)
Constructing layout for specified screen device.
|
Modifier and Type | Method and Description |
---|---|
void |
layoutScreen()
Performs positioning and sizing of windows added into this ScreenLayout.
|
addWindow, addWindow, removeWindow
protected final GraphicsDevice device
public NotificationsScreenLayout()
public NotificationsScreenLayout(GraphicsDevice device)
device
- screen device to construct layout forpublic void layoutScreen()
ScreenLayout
layoutScreen
in interface ScreenLayout<Window,Object>
Copyright © 2020. All rights reserved.