Class SubstanceRibbonFrameTitlePane

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.pushingpixels.substance.internal.utils.SubstanceTitlePane
org.pushingpixels.substance.flamingo.ribbon.ui.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:
  • Field Details

    • 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.
    • ribbonFrameChangeListener

      protected ChangeListener ribbonFrameChangeListener
      Listener to sync taskComponentMap.
    • taskbarPanel

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

    • 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 Details

    • 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.