Class DesktopIconHoverPreviewWidget
- java.lang.Object
-
- org.pushingpixels.radiance.theming.api.RadianceThemingWidget<javax.swing.JInternalFrame.JDesktopIcon>
-
- org.pushingpixels.radiance.theming.internal.widget.desktop.DesktopIconHoverPreviewWidget
-
public class DesktopIconHoverPreviewWidget extends RadianceThemingWidget<javax.swing.JInternalFrame.JDesktopIcon>
Adds internal frame thumbnail preview on desktop icon mouse hover.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classDesktopIconHoverPreviewWidget.TitleMouseHandlerMouse handler for showing / hiding the preview window.
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JComponentcompToHoverThe component that initiates the desktop icon preview (when the mouse hover above it).private java.beans.PropertyChangeListenerinternalFramePropertyListenerListens on the changes to the ancestor.private booleanisInDragIndicates whether the corresponding desktop icon is dragged.private javax.swing.JWindowpreviewWindowPreview window (activated on hover).private java.awt.image.BufferedImagesnapshotSnapshot map.private DesktopIconHoverPreviewWidget.TitleMouseHandlertitleMouseHandlerMouse handler for thecompToHover.-
Fields inherited from class org.pushingpixels.radiance.theming.api.RadianceThemingWidget
jcomp
-
-
Constructor Summary
Constructors Constructor Description DesktopIconHoverPreviewWidget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinstallComponents()Installs components for the associated component.voidinstallListeners()Installs listeners for the associated component.private voidsyncPreviewWindow(boolean toShow)Synchronizes the preview window.voiduninstallListeners()Uninstalls listeners for the associated component.private voidupdateSnapshot(javax.swing.JInternalFrame frame)Updates the snapshot of the specified internal frame.-
Methods inherited from class org.pushingpixels.radiance.theming.api.RadianceThemingWidget
installDefaults, installUI, setComponent, uninstallComponents, uninstallDefaults, uninstallUI
-
-
-
-
Field Detail
-
compToHover
private javax.swing.JComponent compToHover
The component that initiates the desktop icon preview (when the mouse hover above it).
-
internalFramePropertyListener
private java.beans.PropertyChangeListener internalFramePropertyListener
Listens on the changes to the ancestor.
-
snapshot
private java.awt.image.BufferedImage snapshot
Snapshot map.
-
previewWindow
private javax.swing.JWindow previewWindow
Preview window (activated on hover).
-
isInDrag
private boolean isInDrag
Indicates whether the corresponding desktop icon is dragged.
-
titleMouseHandler
private DesktopIconHoverPreviewWidget.TitleMouseHandler titleMouseHandler
Mouse handler for thecompToHover.
-
-
Method Detail
-
installComponents
public void installComponents()
Description copied from class:RadianceThemingWidgetInstalls components for the associated component.- Overrides:
installComponentsin classRadianceThemingWidget<javax.swing.JInternalFrame.JDesktopIcon>
-
installListeners
public void installListeners()
Description copied from class:RadianceThemingWidgetInstalls listeners for the associated component.- Overrides:
installListenersin classRadianceThemingWidget<javax.swing.JInternalFrame.JDesktopIcon>
-
uninstallListeners
public void uninstallListeners()
Description copied from class:RadianceThemingWidgetUninstalls listeners for the associated component.- Overrides:
uninstallListenersin classRadianceThemingWidget<javax.swing.JInternalFrame.JDesktopIcon>
-
syncPreviewWindow
private void syncPreviewWindow(boolean toShow)
Synchronizes the preview window.- Parameters:
toShow- Indication whether the preview window is shown.
-
updateSnapshot
private void updateSnapshot(javax.swing.JInternalFrame frame)
Updates the snapshot of the specified internal frame.- Parameters:
frame- Internal frame.
-
-