|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
bibliothek.gui.dock.themes.basic.BasicDockableDisplayer
bibliothek.extension.gui.dock.theme.bubble.BubbleDisplayer
@ColorCodes(value={"displayer.border.high.active","displayer.border.high.active.mouse","displayer.border.high.inactive","displayer.border.high.inactive.mouse","displayer.border.low.active","displayer.border.low.active.mouse","displayer.border.low.inactive","displayer.border.low.inactive.mouse"}) public class BubbleDisplayer
A DockableDisplayer
drawing a border around its content, but leaves
the side at which the title lies open.
Nested Class Summary |
---|
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.BltBufferStrategy, Component.FlipBufferStrategy |
Nested classes/interfaces inherited from interface bibliothek.gui.dock.station.DockableDisplayer |
---|
DockableDisplayer.Location |
Field Summary |
---|
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 | |
---|---|
BubbleDisplayer(Dockable dockable,
DockTitle title)
Creates a new displayer |
Method Summary | |
---|---|
protected void |
addDockable(Component component)
Inserts a component representing the current dockable
into the layout. |
protected Component |
getComponent(Dockable dockable)
Gets the Component which should be used to layout the current Dockable. |
protected void |
pulse()
Called by the animation when the colors changed and the displayer should be repainted. |
protected void |
removeDockable(Component component)
Removes the Component which represents the current dockable . |
void |
setController(DockController controller)
Sets the controller for which this displayer is used. |
void |
setTitle(DockTitle title)
Sets the title of this displayer. |
protected void |
updateAnimation()
Sets the colors to which the animation should run. |
Methods inherited from class bibliothek.gui.dock.themes.basic.BasicDockableDisplayer |
---|
addTitle, doLayout, getComponent, getComponent, getController, getDockable, getDockableInsets, getMinimumSize, getStation, getTitle, getTitleLocation, init, orientation, removeTitle, setDockable, setStation, setTitleLocation, titleContains |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BubbleDisplayer(Dockable dockable, DockTitle title)
dockable
- the Dockable
which will be shown on this displayer, might be null
title
- the title to show on this displayer, might be null
Method Detail |
---|
protected void updateAnimation()
protected void pulse()
public void setController(DockController controller)
DockableDisplayer
setController
in interface DockableDisplayer
setController
in class BasicDockableDisplayer
controller
- the controller, can be null
protected void addDockable(Component component)
BasicDockableDisplayer
dockable
into the layout. This method is never called twice unless
BasicDockableDisplayer.removeDockable(Component)
is called before. Note that
the name "add" is inspired by the method add
of Container
.
addDockable
in class BasicDockableDisplayer
component
- the new Componentprotected void removeDockable(Component component)
BasicDockableDisplayer
dockable
.
removeDockable
in class BasicDockableDisplayer
component
- the componentprotected Component getComponent(Dockable dockable)
BasicDockableDisplayer
getComponent
in class BasicDockableDisplayer
dockable
- the current Dockable, never null
dockable
public void setTitle(DockTitle title)
DockableDisplayer
null
,
no title is visible. The displayer will change the
orientation
of the title.
setTitle
in interface DockableDisplayer
setTitle
in class BasicDockableDisplayer
title
- the title or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |