Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.javatools.ui
Class WindowTiler

java.lang.Object
  extended by oracle.javatools.ui.WindowTiler

public final class WindowTiler
extends java.lang.Object

Helper class to tile two windows next to each other.

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


Nested Class Summary
static class WindowTiler.Alignment
           
 
Constructor Summary
WindowTiler(java.awt.Window primary, java.awt.Window secondary)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowTiler

public WindowTiler(java.awt.Window primary,
                   java.awt.Window secondary)
Method Detail

setGap

public void setGap(int gap)
Set a space to leave between the windows when tiling

Parameters:
gap -

getGap

public int getGap()

setAlignment

public 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.

Parameters:
alignment -

getAlignment

public java.util.List<WindowTiler.Alignment> getAlignment()
Returns:
an unmodifiable list of the alignments (See java.util.Collections)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.