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

Field Summary
private  DockableDisplayer.Location dockableLocation
          The location of the title if a Dockable is sent to the factory
private  DockableDisplayer.Location stationLocation
          The location of the title if a DockStation is sent to the factory
 
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.
 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
 

Field Detail

dockableLocation

private DockableDisplayer.Location dockableLocation
The location of the title if a Dockable is sent to the factory


stationLocation

private DockableDisplayer.Location stationLocation
The location of the title if a DockStation is sent to the factory

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

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.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.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