C
- component typeU
- component UI typeD
- decoration typepublic class DockablePanePainter<C extends WebDockablePane,U extends WDockablePaneUI,D extends IDecoration<C,D>> extends AbstractContainerPainter<C,U,D> implements IDockablePanePainter<C,U>
WebDockablePane
component.
It is used as WDockableFrameUI
default painter.Modifier and Type | Field and Description |
---|---|
protected IDockableAreaPainter |
areaPainter
SectionPainter that can be used to customize sidebar and content areas backgrounds. |
ancestor, containerListener, current, DECORATION_BORDER_PROPERTY, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, inFocusedParent, inFocusedParentAncestorListener, inFocusedParentTracker, inHoveredParent, inHoveredParentAncestorListener, inHoveredParentTracker, neighboursTracker, stateDecorationCache, states
component, installed, ltr, propertyChangeListener, sectionPainters, ui
Constructor and Description |
---|
DockablePanePainter() |
Modifier and Type | Method and Description |
---|---|
protected Rectangle |
getAreaBounds(CompassDirection area,
Rectangle outerBounds,
Rectangle innerBounds)
Returns
WebDockablePane area bounds. |
protected List<SectionPainter<C,U>> |
getSectionPainters()
Returns
SectionPainter s used by this painter or null if none are used. |
protected void |
paintContent(Graphics2D g2d,
C c,
U ui,
Rectangle bounds)
Paints additional custom content provided by this painter.
|
protected void |
paintSidebar(Graphics2D g2d,
C c,
U ui,
Rectangle bounds)
Paints
WebDockablePane area background. |
afterInstall, afterUninstall, beforeUninstall, childrenChanged, collectDecorationStates, contains, deactivateLastDecoration, focusChanged, getBaseline, getBaselineResizeBehavior, getBorder, getDecoration, getDecorations, getDecorationsKey, getDecorationStates, getPreferredSize, hierarchyChanged, hoverChanged, installBorderListeners, installChildrenListeners, installFocusListeners, installHoverListeners, installInFocusedParentListeners, installInHoveredParentListeners, installPropertiesAndListeners, isDecorationAvailable, isEnabled, isFocused, isHover, isInFocusedParent, isInHoveredParent, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, isPlainBackgroundRequired, orientationChange, paint, propertyChanged, provideShape, uninstallBorderListeners, uninstallChildrenListeners, uninstallFocusListeners, uninstallHoverListeners, uninstallInFocusedParentListeners, uninstallInHoveredParentListeners, uninstallPropertiesAndListeners, updateDecorationState, updateFocusListeners, updateHoverListeners, updateInFocusedParent, updateInHoveredParent, usesContainerView, usesFocusedView, usesHierarchyBasedView, usesHoverView, usesInFocusedParentView, usesInHoveredParentView, usesState, usesState
asList, beforeInstall, borderChange, getCompleteBorder, getInstalledSectionPainters, install, installPropertyChangeListener, installSectionPainter, installSectionPainters, isInstalled, isSectionPainter, isSettingsUpdateAllowed, paintSection, repaint, repaint, repaint, revalidate, saveOrientation, uninstall, uninstallPropertyChangeListener, uninstallSectionPainter, uninstallSectionPainters, updateAll, updateBorder, updateOpacity, updateOrientation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getBaseline, getBaselineResizeBehavior, getPreferredSize, install, isInstalled, isOpaque, paint, uninstall
@DefaultPainter(value=DockableAreaPainter.class) protected IDockableAreaPainter areaPainter
SectionPainter
that can be used to customize sidebar and content areas backgrounds.@Nullable protected List<SectionPainter<C,U>> getSectionPainters()
AbstractPainter
SectionPainter
s used by this painter or null
if none are used.
Do not return any null
SectionPainter
s here, it will cause an exception.
You can use AbstractPainter.asList(SectionPainter[])
method to conveniently form a list filtering out null
s.getSectionPainters
in class AbstractPainter<C extends WebDockablePane,U extends WDockablePaneUI>
SectionPainter
s used by this painter or null
if none are usedprotected void paintContent(@NotNull Graphics2D g2d, @NotNull C c, @NotNull U ui, @NotNull Rectangle bounds)
AbstractDecorationPainter
paintContent
in class AbstractDecorationPainter<C extends WebDockablePane,U extends WDockablePaneUI,D extends IDecoration<C,D>>
g2d
- graphics contextc
- painted componentui
- painted component UIbounds
- painting boundsprotected void paintSidebar(@NotNull Graphics2D g2d, @NotNull C c, @NotNull U ui, @NotNull Rectangle bounds)
WebDockablePane
area background.g2d
- Graphics2D
c
- WebDockablePane
ui
- WDockablePaneUI
bounds
- painting bounds@NotNull protected Rectangle getAreaBounds(CompassDirection area, Rectangle outerBounds, Rectangle innerBounds)
WebDockablePane
area bounds.area
- WebDockablePane
areaouterBounds
- WebDockablePane
outer boundsinnerBounds
- WebDockablePane
inner boundsWebDockablePane
area boundsCopyright © 2020. All rights reserved.