Class DesktopIconHoverPreviewWidget
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingWidget<JInternalFrame.JDesktopIcon>
org.pushingpixels.radiance.theming.internal.widget.desktop.DesktopIconHoverPreviewWidget
public class DesktopIconHoverPreviewWidget
extends RadianceThemingWidget<JInternalFrame.JDesktopIcon>
Adds internal frame thumbnail preview on desktop icon mouse hover.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
Mouse handler for showing / hiding the preview window. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JComponent
The component that initiates the desktop icon preview (when the mouse hover above it).private PropertyChangeListener
Listens on the changes to the ancestor.private boolean
Indicates whether the corresponding desktop icon is dragged.private JWindow
Preview window (activated on hover).private BufferedImage
Snapshot map.Mouse handler for thecompToHover
.Fields inherited from class org.pushingpixels.radiance.theming.api.RadianceThemingWidget
jcomp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Installs components for the associated component.void
Installs listeners for the associated component.private void
syncPreviewWindow
(boolean toShow) Synchronizes the preview window.void
Uninstalls listeners for the associated component.private void
updateSnapshot
(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 Details
-
compToHover
The component that initiates the desktop icon preview (when the mouse hover above it). -
internalFramePropertyListener
Listens on the changes to the ancestor. -
snapshot
Snapshot map. -
previewWindow
Preview window (activated on hover). -
isInDrag
private boolean isInDragIndicates whether the corresponding desktop icon is dragged. -
titleMouseHandler
Mouse handler for thecompToHover
.
-
-
Constructor Details
-
DesktopIconHoverPreviewWidget
public DesktopIconHoverPreviewWidget()
-
-
Method Details
-
installComponents
public void installComponents()Description copied from class:RadianceThemingWidget
Installs components for the associated component.- Overrides:
installComponents
in classRadianceThemingWidget<JInternalFrame.JDesktopIcon>
-
installListeners
public void installListeners()Description copied from class:RadianceThemingWidget
Installs listeners for the associated component.- Overrides:
installListeners
in classRadianceThemingWidget<JInternalFrame.JDesktopIcon>
-
uninstallListeners
public void uninstallListeners()Description copied from class:RadianceThemingWidget
Uninstalls listeners for the associated component.- Overrides:
uninstallListeners
in classRadianceThemingWidget<JInternalFrame.JDesktopIcon>
-
syncPreviewWindow
private void syncPreviewWindow(boolean toShow) Synchronizes the preview window.- Parameters:
toShow
- Indication whether the preview window is shown.
-
updateSnapshot
Updates the snapshot of the specified internal frame.- Parameters:
frame
- Internal frame.
-