@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","glass.disabled.light","glass.disabled.boundary","glass.disabled.center","stack.tab.border.glass","stack.tab.border.selected.glass","stack.tab.border.selected.focused.glass","stack.tab.border.selected.focuslost.glass","stack.tab.border.disabled.glass","stack.tab.top.glass","stack.tab.top.selected.glass","stack.tab.top.selected.focused.glass","stack.tab.top.selected.focuslost.glass","stack.tab.top.disabled.glass","stack.tab.bottom.glass","stack.tab.bottom.selected.glass","stack.tab.bottom.selected.focused.glass","stack.tab.bottom.selected.focuslost.glass","stack.tab.bottom.disabled.glass","stack.tab.text.glass","stack.tab.text.selected.glass","stack.tab.text.selected.focused.glass","stack.tab.text.selected.focuslost.glass","stack.tab.text.disabled.glass","stack.border.glass"})
public class CGlassEclipseTabPainter
extends bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BaseTabComponent
Modifier and Type | Class and Description |
---|---|
protected class |
CGlassEclipseTabPainter.CGlassColor
Special glass color.
|
protected static class |
CGlassEclipseTabPainter.CTabPainter |
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected bibliothek.gui.dock.themes.color.TabColor |
colGlassBoundaryDisabled |
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 |
colGlassCenterDisabled |
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 |
colGlassLightDisabled |
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 . |
colorStackBorder, colorStackTabBorder, colorStackTabBorderDisabled, colorStackTabBorderSelected, colorStackTabBorderSelectedFocused, colorStackTabBorderSelectedFocusLost, colorStackTabBottom, colorStackTabBottomDisabled, colorStackTabBottomSelected, colorStackTabBottomSelectedFocused, colorStackTabBottomSelectedFocusLost, colorStackTabText, colorStackTabTextDisabled, colorStackTabTextSelected, colorStackTabTextSelectedFocused, colorStackTabTextSelectedFocusLost, colorStackTabTop, colorStackTabTopDisabled, colorStackTabTopSelected, colorStackTabTopSelectedFocused, colorStackTabTopSelectedFocusLost, fontFocused, fontSelected, fontUnselected
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
CGlassEclipseTabPainter(bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseTabPane pane,
bibliothek.gui.Dockable dockable)
Creates a new painter.
|
Modifier and Type | Method and Description |
---|---|
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()
Initializes 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() |
protected void |
updateEnabled() |
void |
updateFocus() |
protected void |
updateGlass() |
protected void |
updateOrientation() |
protected void |
updateSelected() |
addAdditionalColors, addMouseInputListener, addMouseListener, addMouseMotionListener, bind, cleanNextTabSelected, cleanPreviousTabSelected, containsButton, doPaintIconWhenInactive, getButtonInsets, getButtons, getComponent, getController, getDockable, getDockableIndex, getEclipseTabStateInfo, getElement, getIcon, getLabel, getLabelInsets, getMinimumSize, getOrientation, getPane, getPopupLocation, getPreferredSize, getStation, getTabIndex, getText, isBound, isFocused, isFocusTemporarilyLost, isNextTabSelected, isPreviousTabSelected, isSelected, isUsedAsTitle, refreshActions, removeMouseInputListener, removeMouseListener, removeMouseMotionListener, setButtonInsets, setConfiguration, setEnabled, setFocused, setIcon, setLabelInsets, setNextTabSelected, setOrientation, setPaintIconWhenInactive, setPreviousTabSelected, setSelected, setTab, setText, setTooltip, setupRenderingHints, shouldFocus, shouldTransfersFocus, updateFont, updatePaintIcon
getBackgroundAlgorithm, getTransparency, paint, paintBorder, paintChildren, paintComponent, paintForeground, paintOverlay, setBackground, setTransparency
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
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
protected bibliothek.gui.dock.themes.color.TabColor colGlassCenterDisabled
protected bibliothek.gui.dock.themes.color.TabColor colGlassBoundaryDisabled
protected bibliothek.gui.dock.themes.color.TabColor colGlassLightDisabled
public static final CGlassEclipseTabPainter.CTabPainter FACTORY
CGlassEclipseTabPainter
.
Normal tab size.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 representspublic 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 JComponent
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
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 updateEnabled()
updateEnabled
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.