Class TabPagerManager.TabPagerPreviewCallback
- java.lang.Object
-
- org.pushingpixels.radiance.theming.extras.internal.tabbed.TabPagerManager.TabPagerPreviewCallback
-
- All Implemented Interfaces:
TabPreviewThread.TabPreviewCallback
- Enclosing class:
- TabPagerManager
public class TabPagerManager.TabPagerPreviewCallback extends java.lang.Object implements TabPreviewThread.TabPreviewCallback
Implementation of the tab preview callback for the tab pager.
-
-
Field Summary
Fields Modifier and Type Field Description private TabPreviewControl
previewControl
The associated tab preview control.private javax.swing.JWindow
previewWindow
The associated preview window.
-
Constructor Summary
Constructors Constructor Description TabPagerPreviewCallback(javax.swing.JWindow previewWindow, javax.swing.JTabbedPane tabPane, int tabIndex)
Creates a new tab preview callback for the tab pager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
offer(javax.swing.JTabbedPane tabPane, int tabIndex, java.awt.image.BufferedImage componentSnap)
Offers the preview image (thumbnail) of a tab in the specified tabbed pane.void
start(javax.swing.JTabbedPane tabPane, int tabCount, TabPreviewThread.TabPreviewInfo tabPreviewInfo)
Starts the current cycle ofTabPreviewThread.TabPreviewCallback.offer(JTabbedPane, int, BufferedImage)
calls.
-
-
-
Field Detail
-
previewWindow
private javax.swing.JWindow previewWindow
The associated preview window.
-
previewControl
private TabPreviewControl previewControl
The associated tab preview control.
-
-
Constructor Detail
-
TabPagerPreviewCallback
public TabPagerPreviewCallback(javax.swing.JWindow previewWindow, javax.swing.JTabbedPane tabPane, int tabIndex)
Creates a new tab preview callback for the tab pager.- Parameters:
previewWindow
- The associated preview window.tabPane
- The associated tab preview control.tabIndex
- Tab index.
-
-
Method Detail
-
start
public void start(javax.swing.JTabbedPane tabPane, int tabCount, TabPreviewThread.TabPreviewInfo tabPreviewInfo)
Description copied from interface:TabPreviewThread.TabPreviewCallback
Starts the current cycle ofTabPreviewThread.TabPreviewCallback.offer(JTabbedPane, int, BufferedImage)
calls. This can be used by the implementing class to revalidate itself in case the tab count in the specified tabbed pane has changed since the previous cycle ofTabPreviewThread.TabPreviewCallback.offer(JTabbedPane, int, BufferedImage)
call.- Specified by:
start
in interfaceTabPreviewThread.TabPreviewCallback
- Parameters:
tabPane
- Tabbed pane.tabCount
- Tab count in the tabbed pane.tabPreviewInfo
- Tab preview info. Can be changed in the implementation code.
-
offer
public void offer(javax.swing.JTabbedPane tabPane, int tabIndex, java.awt.image.BufferedImage componentSnap)
Description copied from interface:TabPreviewThread.TabPreviewCallback
Offers the preview image (thumbnail) of a tab in the specified tabbed pane.- Specified by:
offer
in interfaceTabPreviewThread.TabPreviewCallback
- Parameters:
tabPane
- Tabbed pane.tabIndex
- Tab index.componentSnap
- Tab preview image.
-
-