bibliothek.gui.dock.station.toolbar
Class ToolbarDockableDisplayer

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by bibliothek.gui.dock.util.BackgroundPanel
                      extended by bibliothek.gui.dock.util.ConfiguredBackgroundPanel
                          extended by bibliothek.gui.dock.themes.basic.BasicDockableDisplayer
                              extended by bibliothek.gui.dock.station.toolbar.ToolbarDockableDisplayer
All Implemented Interfaces:
bibliothek.gui.dock.component.DockComponentRoot, bibliothek.gui.dock.station.DockableDisplayer, bibliothek.gui.dock.util.PaintableComponent, ImageObserver, MenuContainer, Serializable, Accessible

public class ToolbarDockableDisplayer
extends bibliothek.gui.dock.themes.basic.BasicDockableDisplayer

A simple implementation of a DockableDisplayer that can be used by toolbar-DockStations. This displayer is aware of the fact, that some DockStations have an orientation and may update its own orientation automatically.

Author:
Benjamin Sigg
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer
bibliothek.gui.dock.themes.basic.BasicDockableDisplayer.DisplayerBorder, bibliothek.gui.dock.themes.basic.BasicDockableDisplayer.Hints
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Nested classes/interfaces inherited from interface bibliothek.gui.dock.station.DockableDisplayer
bibliothek.gui.dock.station.DockableDisplayer.Location
 
Field Summary
static bibliothek.gui.dock.station.DisplayerFactory FACTORY
          A factory creating new ToolbarDockableDisplayers.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ToolbarDockableDisplayer(bibliothek.gui.DockStation station, bibliothek.gui.Dockable dockable, bibliothek.gui.dock.title.DockTitle title)
          Creates a new displayer.
 
Method Summary
protected  Component getComponent(bibliothek.gui.Dockable dockable)
           
protected  Border getDefaultBorder()
           
 Insets getDockableInsets()
           
protected  Orientation getOrientation()
          Tries to find out the current Orientation of the Dockable.
 void setController(bibliothek.gui.DockController controller)
           
 void setDockable(bibliothek.gui.Dockable dockable)
           
protected  void setOrientation(Orientation orientation)
          Called if the orientation of the current Dockable changed.
protected  void updateBorder()
           
 
Methods inherited from class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer
addDockableDisplayerListener, createContentPane, createMinimalDecorator, createRootHandler, createStackedDecorator, createStackedDecorator, createTabDecorator, fireMoveableElementChanged, getComponent, getComponent, getComponentConfiguration, getController, getDefaultBorderHint, getDockable, getHints, getMoveableElement, getStation, getTitle, getTitleCenter, getTitleLocation, init, isRespectBorderHint, isSingleTabShowing, isSingleTabShowInnerBorder, isSingleTabShowOuterBorder, isStacked, isTabInside, listeners, orientation, prepareCombination, removeDockableDisplayerListener, resetDecorator, setBaseBorder, setComponentConfiguration, setContentBorder, setDecorator, setDefaultBorderHint, setRespectBorderHint, setSingleTabShowInnerBorder, setSingleTabShowOuterBorder, setStacked, setStation, setTabInside, setTitle, setTitleLocation, titleContains, updateDecorator, updateDecorator, updateUI
 
Methods inherited from class bibliothek.gui.dock.util.ConfiguredBackgroundPanel
configure
 
Methods inherited from class bibliothek.gui.dock.util.BackgroundPanel
getBackgroundAlgorithm, getTransparency, paint, paintBackground, paintBorder, paintChildren, paintComponent, paintForeground, paintOverlay, setBackground, setTransparency
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FACTORY

public static final bibliothek.gui.dock.station.DisplayerFactory FACTORY
A factory creating new ToolbarDockableDisplayers.

Constructor Detail

ToolbarDockableDisplayer

public ToolbarDockableDisplayer(bibliothek.gui.DockStation station,
                                bibliothek.gui.Dockable dockable,
                                bibliothek.gui.dock.title.DockTitle title)
Creates a new displayer.

Parameters:
station - the owner of this displayer
dockable - the element shown on this displayer, can be null
title - the title shown on this displayer, can be null
Method Detail

getComponent

protected Component getComponent(bibliothek.gui.Dockable dockable)
Overrides:
getComponent in class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer

getDefaultBorder

protected Border getDefaultBorder()
Overrides:
getDefaultBorder in class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer

updateBorder

protected void updateBorder()
Overrides:
updateBorder in class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer

setController

public void setController(bibliothek.gui.DockController controller)
Specified by:
setController in interface bibliothek.gui.dock.station.DockableDisplayer
Overrides:
setController in class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer

setDockable

public void setDockable(bibliothek.gui.Dockable dockable)
Specified by:
setDockable in interface bibliothek.gui.dock.station.DockableDisplayer
Overrides:
setDockable in class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer

getDockableInsets

public Insets getDockableInsets()
Specified by:
getDockableInsets in interface bibliothek.gui.dock.station.DockableDisplayer
Overrides:
getDockableInsets in class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer

getOrientation

protected Orientation getOrientation()
Tries to find out the current Orientation of the Dockable.

Returns:
the current orientation, may be null

setOrientation

protected void setOrientation(Orientation orientation)
Called if the orientation of the current Dockable changed.

Parameters:
orientation - the new orientation, can be null