bibliothek.extension.gui.dock.theme.bubble
Class ReducedBubbleTitleFactory

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.bubble.ReducedBubbleTitleFactory
All Implemented Interfaces:
DockTitleFactory

public class ReducedBubbleTitleFactory
extends java.lang.Object
implements DockTitleFactory

A factory creating instances of BubbleDockTitle. The titles are modified such that the always have round edges.

Author:
Benjamin Sigg

Nested Class Summary
private static class ReducedBubbleTitleFactory.Title
          A BubbleDockTitle whose edges are always round.
 
Field Summary
private  BubbleTheme theme
          the theme from which colors can be read
 
Constructor Summary
ReducedBubbleTitleFactory(BubbleTheme theme)
          Creates a new factory.
 
Method Summary
 DockTitle createDockableTitle(Dockable dockable, DockTitleVersion version)
          Creates a DockTitle for the pure dockable.
<D extends Dockable & DockStation>
DockTitle
createStationTitle(D dockable, DockTitleVersion version)
          Creates a DockTitle for dockable which is also a DockStation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theme

private BubbleTheme theme
the theme from which colors can be read

Constructor Detail

ReducedBubbleTitleFactory

public ReducedBubbleTitleFactory(BubbleTheme theme)
Creates a new factory.

Parameters:
theme - a theme from which colors will be read
Method Detail

createDockableTitle

public DockTitle createDockableTitle(Dockable dockable,
                                     DockTitleVersion version)
Description copied from interface: DockTitleFactory
Creates a DockTitle for the pure dockable.

Specified by:
createDockableTitle in interface DockTitleFactory
Parameters:
dockable - the owner of the title
version - the version which uses this factory, might be null
Returns:
the new title, can be null if no title should be shown for dockable.

createStationTitle

public <D extends Dockable & DockStation> DockTitle createStationTitle(D dockable,
                                                                      DockTitleVersion version)
Description copied from interface: DockTitleFactory
Creates a DockTitle for dockable which is also a DockStation.

Specified by:
createStationTitle in interface DockTitleFactory
Type Parameters:
D - the type of dockable.
Parameters:
dockable - the owner of the title.
version - the version which uses this factory, might be null
Returns:
the new title, can be null if no title should be shown for dockable.