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 classMouse handler for showing / hiding the preview window. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JComponentThe component that initiates the desktop icon preview (when the mouse hover above it).private PropertyChangeListenerListens on the changes to the ancestor.private booleanIndicates whether the corresponding desktop icon is dragged.private JWindowPreview window (activated on hover).private BufferedImageSnapshot map.Mouse handler for thecompToHover.Fields inherited from class RadianceThemingWidget
jcomp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInstalls components for the associated component.voidInstalls listeners for the associated component.private voidsyncPreviewWindow(boolean toShow) Synchronizes the preview window.voidUninstalls listeners for the associated component.private voidupdateSnapshot(JInternalFrame frame) Updates the snapshot of the specified internal frame.Methods inherited from class 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:RadianceThemingWidgetInstalls components for the associated component.- Overrides:
installComponentsin classRadianceThemingWidget<JInternalFrame.JDesktopIcon>
-
installListeners
public void installListeners()Description copied from class:RadianceThemingWidgetInstalls listeners for the associated component.- Overrides:
installListenersin classRadianceThemingWidget<JInternalFrame.JDesktopIcon>
-
uninstallListeners
public void uninstallListeners()Description copied from class:RadianceThemingWidgetUninstalls listeners for the associated component.- Overrides:
uninstallListenersin 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.
-