Exemplo n.º 1
0
 public Point getPosition(
     Dimension screenSize, Insets screenInsets, JWindow window, INotificationStyle style) {
   final int x =
       screenSize.width - window.getWidth() - screenInsets.right - style.getWindowInsets().right;
   final int y = screenInsets.top + style.getWindowInsets().top;
   return new Point(x, y);
 }
Exemplo n.º 2
0
 public Point getPosition(
     Dimension screenSize, Insets screenInsets, JWindow window, INotificationStyle style) {
   final int x = style.getWindowInsets().left;
   final int y =
       screenSize.height
           - screenInsets.bottom
           - window.getHeight()
           - style.getWindowInsets().bottom;
   return new Point(x, y);
 }
Exemplo n.º 3
0
 public Point getPosition(
     Dimension screenSize, Insets screenInsets, JWindow window, INotificationStyle style) {
   final int x = screenSize.width / 2 - window.getWidth() / 2;
   final int y =
       screenSize.height / 2
           - window.getHeight() / 2
           - style.getWindowInsets().bottom / 2
           + style.getWindowInsets().top / 2;
   return new Point(x, y);
 }