|
||||||||||
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.title.AbstractDockTitle
bibliothek.extension.gui.dock.theme.bubble.BubbleDockTitle
@ColorCodes(value={"title.background.top.active.mouse","title.background.top.active","title.background.top.inactive.mouse","title.background.top.inactive","title.background.bottom.active.mouse","title.background.bottom.active","title.background.bottom.inactive.mouse","title.background.bottom.inactive","title.foreground.active.mouse","title.foreground.active","title.foreground.inactive.mouse","title.foreground.inactive"}) public class BubbleDockTitle
A BubbleDockTitle
is a title which has two or four round edges.
The title can smoothly change its colors when touched by the mouse.
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.title.DockTitle |
---|
DockTitle.Orientation |
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 | |
---|---|
protected |
BubbleDockTitle()
A constructor that does not do anything, subclasses should later call init(Dockable, DockTitleVersion, boolean) . |
|
BubbleDockTitle(Dockable dockable,
DockTitleVersion origin)
Creates a new title. |
|
BubbleDockTitle(Dockable dockable,
DockTitleVersion origin,
boolean showMiniButtons)
Creates a new title. |
Method Summary | |
---|---|
void |
bind()
Called before the title is displayed. |
protected Insets |
getInnerInsets()
Gets the insets that have to be applied between the border and the content of this title. |
protected void |
init(Dockable dockable,
DockTitleVersion origin,
boolean showMiniButtons)
Initializes this title, this method should be called only once. |
void |
paint(Graphics g)
|
protected void |
paintBackground(Graphics g,
JComponent component)
Paints the whole background of this title. |
protected void |
pulse()
Called every time when the colors of the animation have been changed. |
void |
setActive(boolean active)
Sets whether this title should be painted as focused or not. |
protected void |
updateAnimation(boolean mouse)
Updates the setting of the animation to reflect new properties of this title. |
Methods inherited from class bibliothek.gui.dock.title.AbstractDockTitle |
---|
addColor, addMouseInputListener, changed, createItemFor, doLayout, getActionSourceFor, getComponent, getDockable, getElement, getIcon, getIconBounds, getMinimumSize, getOrientation, getOrigin, getPopupLocation, getPreferredSize, getText, isActive, isBound, paintComponent, removeColor, removeMouseInputListener, setBackground, setForeground, setIcon, setOrientation, setText, setTooltip, unbind, updateIcon, updateText, updateTooltip |
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 BubbleDockTitle(Dockable dockable, DockTitleVersion origin)
dockable
- the Dockable
for which this title is shownorigin
- the creator of this titlepublic BubbleDockTitle(Dockable dockable, DockTitleVersion origin, boolean showMiniButtons)
dockable
- the Dockable
for which this title is shownorigin
- the creator of this titleshowMiniButtons
- whether this title should show the actions
or notprotected BubbleDockTitle()
init(Dockable, DockTitleVersion, boolean)
.
Method Detail |
---|
protected void init(Dockable dockable, DockTitleVersion origin, boolean showMiniButtons)
init
in class AbstractDockTitle
dockable
- the Dockable
for which this title is shownorigin
- the creator of this titleshowMiniButtons
- whether this title should show the actions
or notpublic void bind()
DockTitle
DockActions
(see the method
DockController.listOffers(Dockable)
), then this method
should bind
them too.Dockable.bind(DockTitle)
. The DockController
will call the bind-method, as soon as the Dockable knows the controller.
bind
in interface DockTitle
bind
in class AbstractDockTitle
public void setActive(boolean active)
AbstractDockTitle
setActive
in class AbstractDockTitle
active
- true
if the Dockable
of this title
has the focus.protected void updateAnimation(boolean mouse)
mouse
- whether the mouse is pressed or notprotected void pulse()
protected Insets getInnerInsets()
AbstractDockTitle
getInnerInsets
in class AbstractDockTitle
null
public void paint(Graphics g)
paint
in class JComponent
protected void paintBackground(Graphics g, JComponent component)
AbstractDockTitle
component
.
paintBackground
in class AbstractDockTitle
g
- the graphics context used to paintcomponent
- the Component which represents this title
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |