Class TabPreviewWindow

    • Field Detail

      • instance

        protected static TabPreviewWindow instance
        Singleton instance of tab preview window.
      • currTabPreviewTimer

        protected static Timer currTabPreviewTimer
        Currently running timer task.
    • Constructor Detail

      • TabPreviewWindow

        public TabPreviewWindow()
    • Method Detail

      • getInstance

        public static TabPreviewWindow getInstance()
        Returns the singleton instance of tab preview window.
        Returns:
        The singleton instance of tab preview window.
      • postPreviewRequest

        public void postPreviewRequest​(JTabbedPane tabPane,
                                       int tabIndex)
        Posts a preview request for a tab component in the specified tabbed pane.
        Parameters:
        tabPane - Tabbed pane.
        tabIndex - Index of the tab to preview.
      • getPreviewWindowScreenRect

        protected Rectangle getPreviewWindowScreenRect​(JTabbedPane tabPane,
                                                       int tabIndex,
                                                       int pWidth,
                                                       int pHeight)
        Returns the screen rectangle for the preview window.
        Parameters:
        tabPane - Tabbed pane.
        tabIndex - Tab index.
        pWidth - Preview width.
        pHeight - Preview height.
        Returns:
        The screen rectangle for the preview window.
      • cancelPreviewRequest

        public static void cancelPreviewRequest()
        Cancels the currently pending preview request.