bibliothek.gui.dock.station.flap
Class FlapDockStationLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.flap.FlapDockStationLayout

public class FlapDockStationLayout
extends Object

A layout describing the content of a FlapDockStation.

Author:
Benjamin Sigg

Constructor Summary
FlapDockStationLayout(int[] children, boolean[] holds, int[] sizes, boolean autoDirection, FlapDockStation.Direction direction)
          Creates a new layout
 
Method Summary
 int[] getChildren()
          Gets the order of the children.
 FlapDockStation.Direction getDirection()
          Gets the direction into which the window will open
 boolean[] getHolds()
          Tells the holding state of the children.
 int[] getSizes()
          Gets the sizes of the window
 boolean isAutoDirection()
          Tells whether the direction is chosen automatically or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlapDockStationLayout

public FlapDockStationLayout(int[] children,
                             boolean[] holds,
                             int[] sizes,
                             boolean autoDirection,
                             FlapDockStation.Direction direction)
Creates a new layout

Parameters:
children - the ids of the children of the station
holds - the holding state of the children
sizes - the sizes of the window
autoDirection - whether the direction of the window is chosen automatically
direction - the direction into which the window opens
Method Detail

getChildren

public int[] getChildren()
Gets the order of the children.

Returns:
the children

getHolds

public boolean[] getHolds()
Tells the holding state of the children.

Returns:
the states

getSizes

public int[] getSizes()
Gets the sizes of the window

Returns:
the size in pixel

getDirection

public FlapDockStation.Direction getDirection()
Gets the direction into which the window will open

Returns:
the direction

isAutoDirection

public boolean isAutoDirection()
Tells whether the direction is chosen automatically or not.

Returns:
true if the direction is chosen automatically