bibliothek.gui.dock.station.toolbar
Class ToolbarGroupDockStationLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.ToolbarGroupDockStationLayout

public class ToolbarGroupDockStationLayout
extends Object

A layout object describing the contents of a ToolbarGroupDockStation.

Author:
Benjamin Sigg

Constructor Summary
ToolbarGroupDockStationLayout(bibliothek.gui.dock.station.support.PlaceholderMap map, ExpandedState state)
          Creates a new layout object.
 
Method Summary
 bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders()
          Gets the encoded layout of a ToolbarGroupDockStation.
 ExpandedState getState()
          Tells whether the children are big or small.
static Orientation readOrientation(bibliothek.gui.dock.station.support.PlaceholderMap map)
          Reads an Orientation from map, this method assumes that the orientation was written with writeOrientation(PlaceholderMap, Orientation).
static void writeOrientation(bibliothek.gui.dock.station.support.PlaceholderMap map, Orientation orientation)
          Stores orientation in map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolbarGroupDockStationLayout

public ToolbarGroupDockStationLayout(bibliothek.gui.dock.station.support.PlaceholderMap map,
                                     ExpandedState state)
Creates a new layout object.

Parameters:
map - the encoded layout of a ToolbarGroupDockStation, not null
state - whether the children are big or small
Method Detail

getPlaceholders

public bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders()
Gets the encoded layout of a ToolbarGroupDockStation.

Returns:
the encoded layout

getState

public ExpandedState getState()
Tells whether the children are big or small.

Returns:
the size of the children

writeOrientation

public static void writeOrientation(bibliothek.gui.dock.station.support.PlaceholderMap map,
                                    Orientation orientation)
Stores orientation in map.

Parameters:
map - the map to modify
orientation - the orientation to save
See Also:
readOrientation(PlaceholderMap)

readOrientation

public static Orientation readOrientation(bibliothek.gui.dock.station.support.PlaceholderMap map)
Reads an Orientation from map, this method assumes that the orientation was written with writeOrientation(PlaceholderMap, Orientation).

Parameters:
map - the map to read from
Returns:
the orientation or null if not found
See Also:
writeOrientation(PlaceholderMap, Orientation)