Class DesktopIconHoverPreviewWidget


  • public class DesktopIconHoverPreviewWidget
    extends RadianceThemingWidget<javax.swing.JInternalFrame.JDesktopIcon>
    Adds internal frame thumbnail preview on desktop icon mouse hover.
    • 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.
    • Constructor Detail

      • DesktopIconHoverPreviewWidget

        public DesktopIconHoverPreviewWidget()
    • Method Detail

      • 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.