bibliothek.gui.dock.themes.basic
Class BasicDisplayerFactory

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.BasicDisplayerFactory
All Implemented Interfaces:
DisplayerFactory

public class BasicDisplayerFactory
extends java.lang.Object
implements DisplayerFactory

A DisplayerFactory that creates DockableDisplayer with no special settings.

Author:
Benjamin Sigg

Constructor Summary
BasicDisplayerFactory()
           
 
Method Summary
 DockableDisplayer create(DockStation station, Dockable dockable, DockTitle title)
          Creates a new DockableDisplayer which will be shown on station, will have dockable as child and will display the title.
protected  BasicDockableDisplayer create(DockStation station, Dockable dockable, DockTitle title, DockableDisplayer.Location location)
          Creates a new displayer.
 DockableDisplayer.Location getDockableLocation()
          Gets the location where the DockTitle will be shown on the DockableDisplayer, if a Dockable is used as child.
 DockableDisplayer.Location getStationLocation()
          Gets the location where the DockTitle will be shown on the DockableDisplayer, if a DockStation is used as child.
 void setDockableLocation(DockableDisplayer.Location dockableLocation)
          Sets the location where the DockTitle will be shown on a DockableDisplayer if a Dockable is used as child.
 void setStationLocation(DockableDisplayer.Location stationLocation)
          Sets the location where the DockTitle will be shown on a DockableDisplayer if a DockStation is used as child.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDisplayerFactory

public BasicDisplayerFactory()
Method Detail

create

public DockableDisplayer create(DockStation station,
                                Dockable dockable,
                                DockTitle title)
Description copied from interface: DisplayerFactory
Creates a new DockableDisplayer which will be shown on station, will have dockable as child and will display the title.

Specified by:
create in interface DisplayerFactory
Parameters:
station - the parent of the created displayer
dockable - the child of the created displayer
title - the title for the displayer
Returns:
the newly created displayer

create

protected BasicDockableDisplayer create(DockStation station,
                                        Dockable dockable,
                                        DockTitle title,
                                        DockableDisplayer.Location location)
Creates a new displayer.

Parameters:
station - the station for which this displayer is needed
dockable - the element that is shown on the displayer
title - the title of the displayer
location - the location of title
Returns:
the new displayer

getDockableLocation

public DockableDisplayer.Location getDockableLocation()
Gets the location where the DockTitle will be shown on the DockableDisplayer, if a Dockable is used as child.

Returns:
the location
See Also:
setDockableLocation(bibliothek.gui.dock.station.DockableDisplayer.Location)

setDockableLocation

public void setDockableLocation(DockableDisplayer.Location dockableLocation)
Sets the location where the DockTitle will be shown on a DockableDisplayer if a Dockable is used as child.

Parameters:
dockableLocation - the location

getStationLocation

public DockableDisplayer.Location getStationLocation()
Gets the location where the DockTitle will be shown on the DockableDisplayer, if a DockStation is used as child.

Returns:
the location
See Also:
setDockableLocation(bibliothek.gui.dock.station.DockableDisplayer.Location)

setStationLocation

public void setStationLocation(DockableDisplayer.Location stationLocation)
Sets the location where the DockTitle will be shown on a DockableDisplayer if a DockStation is used as child.

Parameters:
stationLocation - the location