|
||||||||||
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.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
glass.eclipse.theme.CGlassEclipseTabPainter
@ColorCodes(value={"glass.selected.light","glass.selected.boundary","glass.selected.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 |
colGlassCenterFocused
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassCenterSelected
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassLightFocused
|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassLightSelected
|
static int |
CORNER_RADIUS
|
static CGlassEclipseTabPainter.CTabPainter |
FACTORY
This factory creates instances of CGlassEclipseTabPainter . |
static CGlassEclipseTabPainter.CTabPainter |
FACTORY_SMALL
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. |
static kux.glass.IGlassFactory.SGlassParameter |
VALUE_PLAIN
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,
boolean bSmallerTabs)
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. |
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()
|
protected void |
paintComponent(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. |
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 |
updatePaintIcon()
|
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, 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, setText, setTooltip, unbind, updateFont |
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 static kux.glass.IGlassFactory.SGlassParameter VALUE_PLAIN
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
public static final CGlassEclipseTabPainter.CTabPainter FACTORY
CGlassEclipseTabPainter
.
Normal tab size.
public static final CGlassEclipseTabPainter.CTabPainter FACTORY_SMALL
CGlassEclipseTabPainter
.
Smaller tab size.
Constructor Detail |
---|
public CGlassEclipseTabPainter(bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseTabPane pane, bibliothek.gui.Dockable dockable, boolean bSmallerTabs)
pane
- the owner of this painterdockable
- the dockable which this painter representsMethod Detail |
---|
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 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 updatePaintIcon()
updatePaintIcon
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
protected void paintComponent(Graphics g)
paintComponent
in class JComponent
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 |