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

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.CombinedStackDockComponent<BubbleStackDockComponent.Tab>
      extended by bibliothek.extension.gui.dock.theme.bubble.BubbleStackDockComponent
All Implemented Interfaces:
StackDockComponent

@ColorCodes(value={"stack.tab.background.top.mouse","stack.tab.background.bottom.mouse","stack.tab.border.mouse","stack.tab.foreground.mouse","stack.tab.background.top","stack.tab.background.bottom","stack.tab.border","stack.tab.foreground","stack.tab.background.top.selected.mouse","stack.tab.background.bottom.selected.mouse","stack.tab.border.selected.mouse","stack.tab.foreground.selected.mouse","stack.tab.background.top.selected","stack.tab.background.bottom.selected","stack.tab.border.selected","stack.tab.foreground.selected","stack.tab.background.top.focused.mouse","stack.tab.background.bottom.focused.mouse","stack.tab.border.focused.mouse","stack.tab.foreground.focused.mouse","stack.tab.background.top.focused","stack.tab.background.bottom.focused","stack.tab.border.focused","stack.tab.foreground.focused"})
public class BubbleStackDockComponent
extends CombinedStackDockComponent<BubbleStackDockComponent.Tab>

A StackDockComponent used by a BubbleTheme. This component can animate its tabs.

Author:
Benjamin Sigg

Nested Class Summary
protected  class BubbleStackDockComponent.BubbleTabColor
          Some color needed on a BubbleStackDockComponent.Tab.
protected  class BubbleStackDockComponent.Tab
          A tab of the StackDockComponent
 
Constructor Summary
BubbleStackDockComponent(StackDockStation station)
          Creates a new component.
 
Method Summary
protected  BubbleStackDockComponent.Tab createTab(Dockable dockable)
          Creates a new tab which will be shown on this component.
protected  void destroy(BubbleStackDockComponent.Tab tab)
          Deletes a tab that was earlier created by CombinedStackDockComponent.createTab(Dockable).
 boolean hasBorder()
          Whether this kind of component already has a border.
 void setController(DockController controller)
          Sets the controller for which this component manages its children.
 
Methods inherited from class bibliothek.gui.dock.station.stack.CombinedStackDockComponent
addChangeListener, addTab, fireStateChange, getBoundsAt, getComponent, getController, getSelectedIndex, getTab, getTabCount, insertTab, remove, removeAll, removeChangeListener, setIconAt, setSelectedIndex, setTitleAt, setTooltipAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BubbleStackDockComponent

public BubbleStackDockComponent(StackDockStation station)
Creates a new component.

Parameters:
station - the station on which this component is used
Method Detail

createTab

protected BubbleStackDockComponent.Tab createTab(Dockable dockable)
Description copied from class: CombinedStackDockComponent
Creates a new tab which will be shown on this component.

Specified by:
createTab in class CombinedStackDockComponent<BubbleStackDockComponent.Tab>
Parameters:
dockable - the Dockable for which the tab will be used
Returns:
the new tab

destroy

protected void destroy(BubbleStackDockComponent.Tab tab)
Description copied from class: CombinedStackDockComponent
Deletes a tab that was earlier created by CombinedStackDockComponent.createTab(Dockable).

Specified by:
destroy in class CombinedStackDockComponent<BubbleStackDockComponent.Tab>
Parameters:
tab - the tab which is no longer needed

setController

public void setController(DockController controller)
Description copied from interface: StackDockComponent
Sets the controller for which this component manages its children.

Specified by:
setController in interface StackDockComponent
Overrides:
setController in class CombinedStackDockComponent<BubbleStackDockComponent.Tab>
Parameters:
controller - the controller or null

hasBorder

public boolean hasBorder()
Description copied from interface: StackDockComponent
Whether this kind of component already has a border.

Returns:
true if this has a border, false if the parent should paint one.