net.sourceforge.jaulp.layout
Class ScreenSizeUtils

java.lang.Object
  extended by net.sourceforge.jaulp.layout.ScreenSizeUtils

public class ScreenSizeUtils
extends java.lang.Object

Utility class for handle with screensize.

Version:
1.0
Author:
Asterios Raptis

Constructor Summary
ScreenSizeUtils()
           
 
Method Summary
static java.util.List computeDialogPositions(int dialogWidth, int dialogHeight)
          Compute how much dialog can be put into the screen and returns a list with the coordinates from the dialog positions as Point objects.
static java.awt.Point getPoint()
          Gets the Screensize and returns it as a Point object.
static int getScreenHeight()
          Gets the height from the current screen.
static int getScreenWidth()
          Gets the width from the current screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenSizeUtils

public ScreenSizeUtils()
Method Detail

getPoint

public static java.awt.Point getPoint()
Gets the Screensize and returns it as a Point object.

Returns:
A Point object.

getScreenWidth

public static int getScreenWidth()
Gets the width from the current screen.

Returns:
Returns the width from the current screen.

getScreenHeight

public static int getScreenHeight()
Gets the height from the current screen.

Returns:
Returns the height from the current screen.

computeDialogPositions

public static java.util.List computeDialogPositions(int dialogWidth,
                                                    int dialogHeight)
Compute how much dialog can be put into the screen and returns a list with the coordinates from the dialog positions as Point objects.

Parameters:
dialogWidth - the dialog width
dialogHeight - the dialog height
Returns:
the list with the computed Point objects.


Copyright © 2010. All Rights Reserved.