bibliothek.gui.dock.station.flap
Class FlapDockStationLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.flap.FlapDockStationLayout
All Implemented Interfaces:
DockLayout

public class FlapDockStationLayout
extends Object
implements DockLayout

A layout describing the content of a FlapDockStation.

Author:
Benjamin Sigg

Constructor Summary
FlapDockStationLayout(int[] children, boolean[] holds, int size, 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
 String getFactoryID()
          Gets the identifier of the factory which created this layout.
 boolean[] getHolds()
          Tells the holding state of the children.
 int getSize()
          Gets the size of the window
 boolean isAutoDirection()
          Tells whether the direction is chosen automatically or not.
 void setFactoryID(String id)
          Sets the identifier of the factory which created this layout.
 
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 size,
                             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
size - the size of the window
autoDirection - whether the direction of the window is chosen automatically
direction - the direction into which the window opens
Method Detail

getFactoryID

public String getFactoryID()
Description copied from interface: DockLayout
Gets the identifier of the factory which created this layout.

Specified by:
getFactoryID in interface DockLayout
Returns:
the identifier of the factory

setFactoryID

public void setFactoryID(String id)
Description copied from interface: DockLayout
Sets the identifier of the factory which created this layout.

Specified by:
setFactoryID in interface DockLayout
Parameters:
id - the identifier of the factory

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

getSize

public int getSize()
Gets the size 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