|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 bibliothek.gui.dock.themes.basic.BasicDockableDisplayer |
---|
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.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(DockStation station,
Dockable dockable,
DockTitle title)
Creates a new displayer |
Method Summary | |
---|---|
protected void |
addDockable(Dockable dockable,
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 Border |
getDefaultBorder()
Gets the default border for this displayer. |
Insets |
getDockableInsets()
Gets an estimate of the insets around the Dockable of this
displayer compared to the whole size of this displayer. |
protected void |
pulse()
Called by the animation when the colors changed and the displayer should be repainted. |
protected void |
removeDockable(Dockable dockable,
Component component)
Removes the Component which represents the current dockable . |
void |
setController(DockController controller)
Sets the controller for which this displayer is used. |
void |
setDockable(Dockable dockable)
Sets the Dockable which should be shown on this displayer. |
void |
setTitle(DockTitle title)
Sets the title of this displayer. |
protected void |
updateAnimation()
Sets the colors to which the animation should run. |
protected void |
updateBorder()
Called when the hint, whether a border should be shown or not, has changed. |
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(DockStation station, Dockable dockable, DockTitle title)
station
- the station for which this displayer will be useddockable
- 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(Dockable dockable, Component component)
BasicDockableDisplayer
dockable
into the layout. This method is never called twice unless
BasicDockableDisplayer.removeDockable(Dockable, Component)
is called before. Note that
the name "add" is inspired by the method add
of Container
.
addDockable
in class BasicDockableDisplayer
dockable
- the dockable to add, may be null
component
- the new Component, may be null
protected void removeDockable(Dockable dockable, Component component)
BasicDockableDisplayer
dockable
.
removeDockable
in class BasicDockableDisplayer
dockable
- the element to remove, may be null
component
- the component, may be null
protected 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
public void setDockable(Dockable dockable)
DockableDisplayer
null
means that no Dockable should be visible at all.
setDockable
in interface DockableDisplayer
setDockable
in class BasicDockableDisplayer
dockable
- the child, can be null
protected void updateBorder()
BasicDockableDisplayer
updateBorder
in class BasicDockableDisplayer
protected Border getDefaultBorder()
BasicDockableDisplayer
null
.
The standard implementation just returns a new instance of of
BevelBorder
.
getDefaultBorder
in class BasicDockableDisplayer
public Insets getDockableInsets()
DockableDisplayer
Dockable
of this
displayer compared to the whole size of this displayer.
getDockableInsets
in interface DockableDisplayer
getDockableInsets
in class BasicDockableDisplayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |