Class SubstanceRibbonFrameTitlePane

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable

    public class SubstanceRibbonFrameTitlePane
    extends org.pushingpixels.substance.internal.utils.SubstanceTitlePane
    Custom title pane for JRibbonFrame running under Substance look-and-feel.
    See Also:
    Serialized Form
    • Field Detail

      • taskComponentMap

        protected Map<org.pushingpixels.flamingo.api.ribbon.RibbonContextualTaskGroup,​org.pushingpixels.substance.flamingo.ribbon.ui.SubstanceRibbonFrameTitlePane.SubstanceContextualGroupComponent> taskComponentMap
        Maps the currently visible contextual task groups to the respective child components of this title pane.
      • taskbarPanel

        protected org.pushingpixels.substance.flamingo.ribbon.ui.SubstanceRibbonFrameTitlePane.TaskbarPanel taskbarPanel
        Panel for the taskbar components.
    • Constructor Detail

      • SubstanceRibbonFrameTitlePane

        public SubstanceRibbonFrameTitlePane​(JRootPane root,
                                             org.pushingpixels.substance.internal.ui.SubstanceRootPaneUI ui)
        Creates a new title pane for JRibbonFrame.
        Parameters:
        root - Root pane.
        ui - UI delegate.
    • Method Detail

      • createLayout

        protected LayoutManager createLayout()
        Overrides:
        createLayout in class org.pushingpixels.substance.internal.utils.SubstanceTitlePane
      • addNotify

        public void addNotify()
        Overrides:
        addNotify in class org.pushingpixels.substance.internal.utils.SubstanceTitlePane
      • removeNotify

        public void removeNotify()
        Overrides:
        removeNotify in class org.pushingpixels.substance.internal.utils.SubstanceTitlePane
      • syncRibbonState

        protected void syncRibbonState()
        Synchronizes the child components for ribbon state (visible contextual task groups and taskbar components).
      • paintComponent

        public void paintComponent​(Graphics g)
        Overrides:
        paintComponent in class org.pushingpixels.substance.internal.utils.SubstanceTitlePane
      • paintTaskBarPanelOutline

        protected static void paintTaskBarPanelOutline​(Graphics g,
                                                       org.pushingpixels.substance.flamingo.ribbon.ui.SubstanceRibbonFrameTitlePane.TaskbarPanel taskbarPanel)
        Paints the outline of the taskbar panel.
        Parameters:
        g - Graphics context.
        taskbarPanel - Taskbar panel.