org.fuin.utils4swing.common
Class AbstractScreenPositioner

java.lang.Object
  extended by org.fuin.utils4swing.common.AbstractScreenPositioner
All Implemented Interfaces:
FramePositioner
Direct Known Subclasses:
ScreenCenterPositioner, ScreenLeftLowerCornerPositioner, ScreenLeftUpperCornerPositioner, ScreenRightLowerCornerPositioner, ScreenRightUpperCornerPositioner

public abstract class AbstractScreenPositioner
extends java.lang.Object
implements FramePositioner

Base class for FramePositioner implementations.


Constructor Summary
AbstractScreenPositioner(int widthOffset, int heightOffset)
          Constructor with an offset.
 
Method Summary
protected  void checkMaxSize(java.awt.Dimension screenSize, java.awt.Dimension frameSize)
          Adjusts the width and height of the fraem if it's greater than the screen.
 int getHeightOffset()
          Returns the height.
 int getWidthOffset()
          Returns the width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fuin.utils4swing.common.FramePositioner
position
 

Constructor Detail

AbstractScreenPositioner

public AbstractScreenPositioner(int widthOffset,
                                int heightOffset)
Constructor with an offset.

Parameters:
widthOffset - Width to adjust the horizontal position.
heightOffset - Height to adjust the vertical position.
Method Detail

checkMaxSize

protected final void checkMaxSize(java.awt.Dimension screenSize,
                                  java.awt.Dimension frameSize)
Adjusts the width and height of the fraem if it's greater than the screen.

Parameters:
screenSize - Screen size.
frameSize - Frame size.

getHeightOffset

public final int getHeightOffset()
Returns the height.

Returns:
Height to adjust the vertical position

getWidthOffset

public final int getWidthOffset()
Returns the width.

Returns:
Width to adjust the horizontal position


Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.