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 class
DesktopIconHoverPreviewWidget.TitleMouseHandler
Mouse handler for showing / hiding the preview window.
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JComponent
compToHover
The component that initiates the desktop icon preview (when the mouse hover above it).private java.beans.PropertyChangeListener
internalFramePropertyListener
Listens on the changes to the ancestor.private boolean
isInDrag
Indicates whether the corresponding desktop icon is dragged.private javax.swing.JWindow
previewWindow
Preview window (activated on hover).private java.awt.image.BufferedImage
snapshot
Snapshot map.private DesktopIconHoverPreviewWidget.TitleMouseHandler
titleMouseHandler
Mouse 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 void
installComponents()
Installs components for the associated component.void
installListeners()
Installs listeners for the associated component.private void
syncPreviewWindow(boolean toShow)
Synchronizes the preview window.void
uninstallListeners()
Uninstalls listeners for the associated component.private void
updateSnapshot(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:RadianceThemingWidget
Installs components for the associated component.- Overrides:
installComponents
in classRadianceThemingWidget<javax.swing.JInternalFrame.JDesktopIcon>
-
installListeners
public void installListeners()
Description copied from class:RadianceThemingWidget
Installs listeners for the associated component.- Overrides:
installListeners
in classRadianceThemingWidget<javax.swing.JInternalFrame.JDesktopIcon>
-
uninstallListeners
public void uninstallListeners()
Description copied from class:RadianceThemingWidget
Uninstalls listeners for the associated component.- Overrides:
uninstallListeners
in 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.
-
-