|
||||||||||
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.util.BackgroundPanel bibliothek.gui.dock.util.ConfiguredBackgroundPanel bibliothek.gui.dock.title.AbstractMultiDockTitle bibliothek.gui.dock.title.AbstractDockTitle bibliothek.gui.dock.themes.basic.BasicDockTitle
@ColorCodes(value={"title.active.left","title.inactive.left","title.disabled.left","title.active.right","title.inactive.right","title.disabled.right","title.active.text","title.inactive.text"}) public class BasicDockTitle
The default-title that is used most times in the framework. This title shows an icon, a text, some small buttons and a gradient as background.
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 | |
---|---|
static DockTitleFactory |
FACTORY
A factory for the BasicDockTitle . |
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 bibliothek.gui.dock.title.DockTitle |
---|
ORIENTATION_STRATEGY |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
|
BasicDockTitle(Dockable dockable,
DockTitleVersion origin)
Creates a new title |
protected |
BasicDockTitle(Dockable dockable,
DockTitleVersion origin,
boolean setDefaultConditionalFonts)
Creates a new title |
Method Summary | |
---|---|
Color |
getActiveLeftColor()
Gets the color that is used on the left side if this title is active. |
TitleColor |
getActiveLeftTitleColor()
Gets the handle for the left active color. |
Color |
getActiveRightColor()
Gets the color that is used on the right side in the gradient of this title. |
TitleColor |
getActiveRightTitleColor()
Gets the handle for the left active color. |
Color |
getActiveTextColor()
Gets the color that is used for text if this title is active. |
TitleColor |
getActiveTextTitleColor()
Gets a handle for the foreground color of an active title. |
Color |
getDisabledLeftColor()
Gets the color that is used on the left side if this title is disabled. |
TitleColor |
getDisabledLeftTitleColor()
Gets the handle for the left disabled color. |
Color |
getDisabledRightColor()
Gets the color that is used on the right side if this title is disabled. |
TitleColor |
getDisabledRightTitleColor()
Gets the handle for the right disabled color. |
protected GradientPaint |
getGradient(Color left,
Color right,
Component component)
Gets the gradient which is used to fill the background of component . |
Color |
getInactiveLeftColor()
Gets the color which is used on the left side of the gradient if this title is not active. |
TitleColor |
getInactiveLeftTitleColor()
Gets a handle for the left inactive color. |
Color |
getInactiveRightColor()
Gets the color which is used on the right side of the gradient if this title is not active. |
TitleColor |
getInactiveRightTitleColor()
Gets a handle for the inactive right background color. |
Color |
getInactiveTextColor()
Gets the color of the text. |
TitleColor |
getInactiveTextTitleColor()
Gets a handle for the inactive foreground color. |
protected void |
paintBackground(Graphics g,
JComponent component)
Paints the whole background of this title. |
void |
reshape(int x,
int y,
int w,
int h)
Deprecated. |
void |
setActive(boolean active)
Sets whether this title should be painted as focused or not. |
void |
setActiveLeftColor(Color activeLeftColor)
Sets the color that is used on the left side if this title is active. |
void |
setActiveLeftColorId(String id)
Changes the identifier that is used for the active left color. |
void |
setActiveRightColor(Color activeRightColor)
Sets the color which is used on the right side in the gradient of this title. |
void |
setActiveRightColorId(String id)
Changes the identifier that is used for the active right color. |
void |
setActiveTextColor(Color activeTextColor)
Sets the color which is used to paint the text if this title is active. |
void |
setActiveTextColorId(String id)
Changes the identifier that is used for the active text color. |
protected void |
setDisabled(boolean disabled)
Tells this title whether it should be disabled or not. |
void |
setDisabledLeftColor(Color disabledLeftColor)
Sets the color that is used on the left side if this title is disabled. |
void |
setDisabledLeftColorId(String id)
Changes the identifier that is used for the disabled left color. |
void |
setDisabledRightColor(Color disabledRightColor)
Sets the color that is used on the right side if this title is disabled. |
void |
setDisabledRightColorId(String id)
Changes the identifier that is used for the disabled right color. |
void |
setInactiveLeftColor(Color inactiveLeftColor)
Sets the color which will be used on the left side of the gradient if this title is not active. |
void |
setInactiveLeftColorId(String id)
Changes the identifier that is used for the inactive left color. |
void |
setInactiveRightColor(Color inactiveRightColor)
Sets the color of the right side of the gradient. |
void |
setInactiveRightColorId(String id)
Changes the identifier that is used for the inactive right color. |
void |
setInactiveTextColor(Color inactiveTextColor)
Sets the color of the text. |
void |
setInactiveTextColorId(String id)
Changes the identifier that is used for the inactive text color. |
void |
setOrientation(DockTitle.Orientation orientation)
Sets the orientation of this title. |
protected void |
updateColors()
Invoked after a color has changed. |
void |
validate()
|
Methods inherited from class bibliothek.gui.dock.title.AbstractDockTitle |
---|
bind, changed, doTitleLayout, getActionSourceFor, getPopupLocation, getPreferredSize, getSuggestedSource, init, isShowMiniButtons, setShowMiniButtons, setTooltip, suggestActions, unbind |
Methods inherited from class bibliothek.gui.dock.title.AbstractMultiDockTitle |
---|
addColor, addConditionalFont, addFont, addMouseInputListener, createItemFor, doLayout, getDockable, getElement, getIcon, getIconBounds, getIconTextGap, getInnerInsets, getLabel, getMinimumSize, getOrientation, getOrigin, getText, init, isActive, isBound, isDisabled, isUsedAsTitle, paintBackground, paintForeground, paintForeground, paintIcon, removeAllConditionalFonts, removeColor, removeFont, removeMouseInputListener, setBackground, setBorder, setFont, setFontModifier, setForeground, setIcon, setIconTextGap, setText, shouldFocus, shouldTransfersFocus, titleInsets, updateFonts, updateIcon, updateText, updateTooltip |
Methods inherited from class bibliothek.gui.dock.util.ConfiguredBackgroundPanel |
---|
configure |
Methods inherited from class bibliothek.gui.dock.util.BackgroundPanel |
---|
getBackgroundAlgorithm, getComponent, getTransparency, paint, paintBorder, paintChildren, paintComponent, paintOverlay, setBackground, setTransparency |
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 |
Methods inherited from interface bibliothek.gui.dock.title.DockTitle |
---|
getComponent |
Field Detail |
---|
public static final DockTitleFactory FACTORY
BasicDockTitle
.
Constructor Detail |
---|
public BasicDockTitle(Dockable dockable, DockTitleVersion origin)
dockable
- the owner of this titleorigin
- the version which was used to create this titleprotected BasicDockTitle(Dockable dockable, DockTitleVersion origin, boolean setDefaultConditionalFonts)
dockable
- the owner of this titleorigin
- the version which was used to create this titlesetDefaultConditionalFonts
- whether to set the default set of
conditional fonts for DockFont.ID_TITLE_ACTIVE
and
DockFont.ID_TITLE_INACTIVE
Method Detail |
---|
@Deprecated public void reshape(int x, int y, int w, int h)
reshape
in class JComponent
public void validate()
validate
in class Container
public void setOrientation(DockTitle.Orientation orientation)
DockTitle
setOrientation
in interface DockTitle
setOrientation
in class AbstractDockTitle
orientation
- the orientationprotected void paintBackground(Graphics g, JComponent component)
AbstractMultiDockTitle
component
.
paintBackground
in class AbstractMultiDockTitle
g
- the graphics context used to paintcomponent
- the Component
which represents this titleprotected GradientPaint getGradient(Color left, Color right, Component component)
component
.
left
- the first color of the gradientright
- the second color of the gradientcomponent
- the component on which the gradient will be used
public Color getActiveLeftColor()
getActiveLeftTitleColor().color();
.
setActiveLeftColor(Color)
,
getActiveLeftTitleColor()
public TitleColor getActiveLeftTitleColor()
public void setActiveLeftColor(Color activeLeftColor)
getActiveLeftTitleColor().setValue( activeLeftColor );
.
activeLeftColor
- the colorgetActiveLeftTitleColor()
public void setActiveLeftColorId(String id)
id
- the new identifier, not null
public Color getActiveRightColor()
getActiveRightTitleColor().color();
.
public TitleColor getActiveRightTitleColor()
public void setActiveRightColor(Color activeRightColor)
getActiveRightTitleColor().setValue( activeRightColor );
.
activeRightColor
- the colorpublic void setActiveRightColorId(String id)
id
- the new identifier, not null
public Color getActiveTextColor()
getActiveTextTitleColor().color();
.
public TitleColor getActiveTextTitleColor()
public void setActiveTextColor(Color activeTextColor)
getActiveTextTitleColor().setValue( activeTextColor );
.
activeTextColor
- the colorpublic void setActiveTextColorId(String id)
id
- the new identifier, not null
public Color getDisabledLeftColor()
getDisabledLeftTitleColor().color();
.
setDisabledLeftColor(Color)
,
getDisabledLeftTitleColor()
public TitleColor getDisabledLeftTitleColor()
public void setDisabledLeftColor(Color disabledLeftColor)
getDisabledLeftTitleColor().setValue( activeLeftColor );
.
disabledLeftColor
- the colorgetDisabledLeftTitleColor()
public void setDisabledLeftColorId(String id)
id
- the new identifier, not null
public Color getDisabledRightColor()
getDisabledRightTitleColor().color();
.
setDisabledRightColor(Color)
,
getDisabledRightTitleColor()
public TitleColor getDisabledRightTitleColor()
public void setDisabledRightColor(Color disabledRightColor)
getDisabledRightTitleColor().setValue( activeLeftColor );
.
disabledRightColor
- the colorgetDisabledRightTitleColor()
public void setDisabledRightColorId(String id)
id
- the new identifier, not null
public Color getInactiveLeftColor()
getInactiveLeftTitleColor().color();
.
public TitleColor getInactiveLeftTitleColor()
public void setInactiveLeftColor(Color inactiveLeftColor)
getInactiveLeftTitleColor().setValue( inactiveLeftColor );
.
inactiveLeftColor
- the colorpublic void setInactiveLeftColorId(String id)
id
- the new identifier, not null
public Color getInactiveRightColor()
getInactiveRightTitleColor().color();
.
public TitleColor getInactiveRightTitleColor()
public void setInactiveRightColor(Color inactiveRightColor)
getInactiveRightTitleColor().setValue( inactiveRightColor );
.
inactiveRightColor
- the colorpublic void setInactiveRightColorId(String id)
id
- the new identifier, not null
public Color getInactiveTextColor()
getInactiveTextTitleColor().color();
.
public TitleColor getInactiveTextTitleColor()
public void setInactiveTextColor(Color inactiveTextColor)
getInactiveTextTitleColor().setValue( inactiveTextColor );
.
inactiveTextColor
- the colorpublic void setInactiveTextColorId(String id)
id
- the new identifier, not null
public void setActive(boolean active)
AbstractMultiDockTitle
setActive
in class AbstractMultiDockTitle
active
- true
if the Dockable
of this title
has the focus.protected void setDisabled(boolean disabled)
AbstractMultiDockTitle
DisablingStrategy
changes. A disabled title should react to any InputEvent
, and should be painted differently than an
enabled title.
setDisabled
in class AbstractMultiDockTitle
disabled
- whether this title is disabledAbstractMultiDockTitle.isDisabled()
protected void updateColors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |