|
||||||||||
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.util.BackgroundPanel
bibliothek.gui.dock.util.ConfiguredBackgroundPanel
bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
glass.eclipse.theme.CGlassEclipseTabPainter
@ColorCodes(value={"glass.selected.light","glass.selected.boundary","glass.selected.center","glass.unselected.light","glass.unselected.boundary","glass.unselected.center","glass.focused.light","glass.focused.boundary","glass.focused.center","stack.tab.border.glass","stack.tab.border.selected.glass","stack.tab.border.selected.focused.glass","stack.tab.border.selected.focuslost.glass","stack.tab.top.glass","stack.tab.top.selected.glass","stack.tab.top.selected.focused.glass","stack.tab.top.selected.focuslost.glass","stack.tab.bottom.glass","stack.tab.bottom.selected.glass","stack.tab.bottom.selected.focused.glass","stack.tab.bottom.selected.focuslost.glass","stack.tab.text.glass","stack.tab.text.selected.glass","stack.tab.text.selected.focused.glass","stack.tab.text.selected.focuslost.glass","stack.border.glass"}) public class CGlassEclipseTabPainter
Eclipse tab painter with glass look. Based on ArchPainter of Janni Kovacs.
Nested Class Summary | |
---|---|
protected class |
CGlassEclipseTabPainter.CGlassColor
Special glass color. |
protected static class |
CGlassEclipseTabPainter.CTabPainter
|
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 |
Field Summary | |
---|---|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassBoundaryFocused
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassBoundarySelected
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassBoundaryUnSelected
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassCenterFocused
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassCenterSelected
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassCenterUnSelected
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassLightFocused
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassLightSelected
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassLightUnSelected
|
static int |
CORNER_RADIUS
|
static CGlassEclipseTabPainter.CTabPainter |
FACTORY
This factory creates instances of CGlassEclipseTabPainter . |
kux.glass.IGlassFactory.SGlassParameter |
glassFocused
Glass parameter for focused tab background. |
kux.glass.IGlassFactory.SGlassParameter |
glassSelected
Glass parameter for selected tab background. |
kux.glass.IGlassFactory.SGlassParameter |
glassUnSelected
Glass parameters for inactive tabs and tab strip background. |
Fields inherited from class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent |
---|
colorStackBorder, colorStackTabBorder, colorStackTabBorderSelected, colorStackTabBorderSelectedFocused, colorStackTabBorderSelectedFocusLost, colorStackTabBottom, colorStackTabBottomSelected, colorStackTabBottomSelectedFocused, colorStackTabBottomSelectedFocusLost, colorStackTabText, colorStackTabTextSelected, colorStackTabTextSelectedFocused, colorStackTabTextSelectedFocusLost, colorStackTabTop, colorStackTabTopSelected, colorStackTabTopSelectedFocused, colorStackTabTopSelectedFocusLost, fontFocused, fontSelected, fontUnselected |
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 | |
---|---|
CGlassEclipseTabPainter(bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseTabPane pane,
bibliothek.gui.Dockable dockable)
Creates a new painter. |
Method Summary | |
---|---|
boolean |
contains(int x,
int y)
|
protected Shape |
createSelectedTabShape(int w,
int h,
boolean bFirst)
Creates the tab outline for the selected tab. |
protected Shape |
createUnSelectedTabShape(int w,
int h,
boolean bFirst,
boolean forClip)
Creates the tab outline for an unselected tab. |
protected IGlassParameterFactory |
getGlassParameterFactory()
|
Dimension |
getMinimumSize()
|
Insets |
getOverlap(bibliothek.extension.gui.dock.theme.eclipse.stack.tab.TabComponent other)
|
Dimension |
getPreferredSize()
|
protected int |
getSelectedIndex()
|
protected void |
initAdditionalColors()
Inits additional colors for painting the glass effect. |
protected boolean |
isHorizontal()
|
void |
paintBackground(Graphics g)
|
protected void |
paintSelected(Graphics g,
boolean bActive)
Paints the selected or focused tab (with round edges) |
protected void |
paintUnselected(Graphics g)
Paints a unselected / unfocused tab. |
void |
setSmallTabs(boolean smallTabs)
|
void |
unbind()
|
protected void |
update()
Updates the layout information of this painter. |
void |
updateBorder()
|
protected void |
updateColors()
|
void |
updateFocus()
|
protected void |
updateGlass()
|
protected void |
updateOrientation()
|
protected void |
updateSelected()
|
Methods inherited from class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent |
---|
addAdditionalColors, addMouseInputListener, addMouseListener, addMouseMotionListener, bind, cleanNextTabSelected, cleanPreviousTabSelected, doLayout, doPaintIconWhenInactive, getButtonInsets, getButtons, getComponent, getController, getDockable, getDockableIndex, getElement, getIcon, getLabel, getLabelInsets, getMinimumSize, getOrientation, getPane, getPopupLocation, getPreferredSize, getStation, getTabIndex, getText, isBound, isFocused, isFocusTemporarilyLost, isNextTabSelected, isPreviousTabSelected, isSelected, isUsedAsTitle, removeMouseInputListener, removeMouseListener, removeMouseMotionListener, setButtonInsets, setFocused, setIcon, setLabelInsets, setNextTabSelected, setOrientation, setPaintIconWhenInactive, setPreviousTabSelected, setSelected, setTab, setText, setTooltip, shouldFocus, shouldTransfersFocus, updateFont, updatePaintIcon |
Methods inherited from class bibliothek.gui.dock.util.ConfiguredBackgroundPanel |
---|
configure |
Methods inherited from class bibliothek.gui.dock.util.BackgroundPanel |
---|
getBackgroundAlgorithm, isSolid, isTransparent, paint, paintBorder, paintChildren, paintComponent, paintForeground, paintOverlay, setBackground, setSolid, setTransparent |
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 |
Field Detail |
---|
public kux.glass.IGlassFactory.SGlassParameter glassUnSelected
public kux.glass.IGlassFactory.SGlassParameter glassSelected
public kux.glass.IGlassFactory.SGlassParameter glassFocused
public static final int CORNER_RADIUS
protected bibliothek.gui.dock.themes.color.TabColor colGlassCenterFocused
protected bibliothek.gui.dock.themes.color.TabColor colGlassBoundaryFocused
protected bibliothek.gui.dock.themes.color.TabColor colGlassLightFocused
protected bibliothek.gui.dock.themes.color.TabColor colGlassCenterSelected
protected bibliothek.gui.dock.themes.color.TabColor colGlassBoundarySelected
protected bibliothek.gui.dock.themes.color.TabColor colGlassLightSelected
protected bibliothek.gui.dock.themes.color.TabColor colGlassCenterUnSelected
protected bibliothek.gui.dock.themes.color.TabColor colGlassBoundaryUnSelected
protected bibliothek.gui.dock.themes.color.TabColor colGlassLightUnSelected
public static final CGlassEclipseTabPainter.CTabPainter FACTORY
CGlassEclipseTabPainter
.
Normal tab size.
Constructor Detail |
---|
public CGlassEclipseTabPainter(bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseTabPane pane, bibliothek.gui.Dockable dockable)
pane
- the owner of this painterdockable
- the dockable which this painter representsMethod Detail |
---|
public void setSmallTabs(boolean smallTabs)
public void unbind()
unbind
in interface bibliothek.extension.gui.dock.theme.eclipse.stack.tab.TabComponent
unbind
in class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
protected IGlassParameterFactory getGlassParameterFactory()
protected void initAdditionalColors()
public void updateBorder()
updateBorder
in class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
public Insets getOverlap(bibliothek.extension.gui.dock.theme.eclipse.stack.tab.TabComponent other)
public Dimension getPreferredSize()
getPreferredSize
in class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
public Dimension getMinimumSize()
getMinimumSize
in class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
public void updateFocus()
updateFocus
in class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
protected void updateOrientation()
updateOrientation
in class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
protected void updateSelected()
updateSelected
in class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
protected void updateColors()
updateColors
in class bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
protected void update()
protected void updateGlass()
public boolean contains(int x, int y)
contains
in class JComponent
public void paintBackground(Graphics g)
paintBackground
in interface bibliothek.gui.dock.util.PaintableComponent
paintBackground
in class bibliothek.gui.dock.util.BackgroundPanel
protected int getSelectedIndex()
protected boolean isHorizontal()
protected void paintUnselected(Graphics g)
g
- protected void paintSelected(Graphics g, boolean bActive)
g
- bActive
- protected Shape createUnSelectedTabShape(int w, int h, boolean bFirst, boolean forClip)
w
- h
- bFirst
- forClip
-
protected Shape createSelectedTabShape(int w, int h, boolean bFirst)
w
- h
- bFirst
- Is it the first tab.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |