|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.lafwidget.tabbed.TabPreviewPainter
org.jvnet.lafwidget.tabbed.DefaultTabPreviewPainter
public class DefaultTabPreviewPainter
Default implementation of the tab preview painter. The tab preview is a scaled-down (as necessary) thumbnail of the relevant tab.
| Constructor Summary | |
|---|---|
DefaultTabPreviewPainter()
|
|
| Method Summary | |
|---|---|
boolean |
hasOverviewDialog(javax.swing.JTabbedPane tabPane)
Checks whether the specified tabbed pane has an overview dialog. |
boolean |
hasPreview(javax.swing.JTabbedPane tabPane,
int tabIndex)
Checks whether the specified tab component is previewable. |
boolean |
hasPreviewWindow(javax.swing.JTabbedPane tabPane,
int tabIndex)
Checks whether the specified tabbed pane has a preview window for the specified tab. |
boolean |
isSensitiveToEvents(javax.swing.JTabbedPane tabPane,
int tabIndex)
Checks whether the specified tab component is sensitive to events. |
void |
previewTab(javax.swing.JTabbedPane tabPane,
int tabIndex,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Draws a tab preview on the specified graphics. |
| Methods inherited from class org.jvnet.lafwidget.tabbed.TabPreviewPainter |
|---|
getModalOwner, getOverviewKind, getPreviewDialogScreenBounds, getPreviewWindowDimension, getPreviewWindowExtraDelay, getUpdateCycle, toDisposeOverviewOnFocusLoss, toUpdatePeriodically |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTabPreviewPainter()
| Method Detail |
|---|
public boolean hasPreview(javax.swing.JTabbedPane tabPane,
int tabIndex)
TabPreviewPainter
hasPreview in class TabPreviewPaintertabPane - Tabbed pane.tabIndex - Tab index for the preview paint.
true if the specified tab component is
previewable, false otherwise.
public boolean isSensitiveToEvents(javax.swing.JTabbedPane tabPane,
int tabIndex)
TabPreviewPainter
isSensitiveToEvents in class TabPreviewPaintertabPane - Tabbed pane.tabIndex - Tab index.
true if the specified tab component is sensitive
to events, false otherwise.
public void previewTab(javax.swing.JTabbedPane tabPane,
int tabIndex,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
TabPreviewPainter
previewTab in class TabPreviewPaintertabPane - Tabbed pane.tabIndex - tabIndex Tab index for the preview paint.g - Graphics context.x - X coordinate of the preview area.y - Y coordinate of the preview area.w - Width of the preview area.h - Height of the preview area.
public boolean hasPreviewWindow(javax.swing.JTabbedPane tabPane,
int tabIndex)
TabPreviewPainter
hasPreviewWindow in class TabPreviewPaintertabPane - Tabbed pane.tabIndex - Tab index.
true if the specified tabbed pane has a preview
window for the specified tab, false otherwise.public boolean hasOverviewDialog(javax.swing.JTabbedPane tabPane)
TabPreviewPainter
hasOverviewDialog in class TabPreviewPaintertabPane - Tabbed pane.
true if the specified tabbed pane has an overview
dialog, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||