public final class WindowTiler
extends java.lang.Object
Two windows, Primary and Seconday, will be automatically positioned so that they do not overlap if they move or change size. The secondary window is attempted to be located in a preferred positions relative to the first, e.g. to its left. If there is no room on screen for the secondary window to fit in this postion then the next preferred poisition is examined, and so on.
When either window is made no longer visible the Tiler stops tiling and releases its resources
Modifier and Type | Class and Description |
---|---|
static class |
WindowTiler.Alignment |
Constructor and Description |
---|
WindowTiler(java.awt.Component primary,
java.awt.Window secondary) |
Modifier and Type | Method and Description |
---|---|
java.util.List<WindowTiler.Alignment> |
getAlignment() |
int |
getGap() |
void |
setAlignment(java.util.List<WindowTiler.Alignment> alignment)
The list of alignments in preferred order in which the tiler will attempt to place
the secondary window in relation to the first.
|
void |
setGap(int gap)
Set a space to leave between the windows when tiling
|
public WindowTiler(java.awt.Component primary, java.awt.Window secondary)
public void setGap(int gap)
gap
- public int getGap()
public void setAlignment(java.util.List<WindowTiler.Alignment> alignment)
alignment
- public java.util.List<WindowTiler.Alignment> getAlignment()