bibliothek.gui.dock.station.screen
Class ScreenDockStationLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.ScreenDockStationLayout
All Implemented Interfaces:
DockLayout

public class ScreenDockStationLayout
extends Object
implements DockLayout

A layout that holds the contents of a ScreenDockStation.

Author:
Benjamin Sigg

Constructor Summary
ScreenDockStationLayout()
           
 
Method Summary
 void add(int id, int x, int y, int width, int height)
          Adds a new entry to this layout.
 String getFactoryID()
          Gets the identifier of the factory which created this layout.
 int height(int index)
          Gets the height of the index'th entry.
 int id(int index)
          Gets the id of the index'th entry.
 void setFactoryID(String id)
          Sets the identifier of the factory which created this layout.
 int size()
          Gets the number of entries in this layout.
 int width(int index)
          Gets the width of the index'th entry.
 int x(int index)
          Gets the x coordinate of the index'th entry.
 int y(int index)
          Gets the y coordinate of the index'th entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenDockStationLayout

public ScreenDockStationLayout()
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

add

public void add(int id,
                int x,
                int y,
                int width,
                int height)
Adds a new entry to this layout.

Parameters:
id - the id of the entry
x - the x coordinate
y - the y coordinate
width - the width
height - the height

size

public int size()
Gets the number of entries in this layout.

Returns:
the number of entries

id

public int id(int index)
Gets the id of the index'th entry.

Parameters:
index - the index of the entry
Returns:
the id

x

public int x(int index)
Gets the x coordinate of the index'th entry.

Parameters:
index - the index of the entry
Returns:
the coordinate

y

public int y(int index)
Gets the y coordinate of the index'th entry.

Parameters:
index - the index of the entry
Returns:
the coordinate

width

public int width(int index)
Gets the width of the index'th entry.

Parameters:
index - the index of the entry
Returns:
the width

height

public int height(int index)
Gets the height of the index'th entry.

Parameters:
index - the index of the entry
Returns:
the height