Examples of WebCustomTooltip


Examples of com.alee.managers.tooltip.WebCustomTooltip

    public List<PresentationStep> getPresentationSteps ()
    {
        final List<PresentationStep> presentationSteps = new ArrayList<PresentationStep> ();

        // Color choose tip
        final WebCustomTooltip tip1 = new WebCustomTooltip ( colorChooser, lmb, "Double click on any color to change it", TooltipWay.down );
        tip1.setDisplayLocation ( gripper1 () );
        presentationSteps.add ( new OneTimeTooltipStep ( "Edit", 5000, tip1, this ) );

        // Color choose tip
        final WebCustomTooltip tip2 =
                new WebCustomTooltip ( colorChooser, lmb, "Click on any free space to add new color", TooltipWay.down );
        tip2.setDisplayLocation ( betweenGrippers () );
        presentationSteps.add ( new OneTimeTooltipStep ( "Add", 5000, tip2, this ) );

        // Color copy tip
        final WebCustomTooltip tip3 = new WebCustomTooltip ( colorChooser, lmb, "Press ALT and drag color to copy it", TooltipWay.down );
        tip3.setDisplayLocation ( gripper2 () );
        presentationSteps.add ( new OneTimeTooltipStep ( "Copy", 5000, tip3, this ) );

        // Color delete tip
        final WebCustomTooltip tip41 = new WebCustomTooltip ( colorChooser, ImageUtils.combineIcons ( 2, rmb, mmb ),
                "Use middle or right mouse button to remove color", TooltipWay.down );
        tip41.setDisplayLocation ( gripper2 () );
        presentationSteps.add ( new OneTimeTooltipStep ( "Remove", 5000, tip41, this ) );

        // Color delete tip 2
        final WebCustomTooltip tip42 =
                new WebCustomTooltip ( colorChooser, cursor, "You can also drag color up to remove it", TooltipWay.down );
        tip42.setDisplayLocation ( gripper2 () );
        presentationSteps.add ( new OneTimeTooltipStep ( "Remove", 5000, tip42, this ) );

        colorChooser.addChangeListener ( new ChangeListener ()
        {
            @Override
            public void stateChanged ( ChangeEvent e )
            {
                tip1.setDisplayLocation ( gripper1 () );
                tip2.setDisplayLocation ( betweenGrippers () );
                tip3.setDisplayLocation ( gripper2 () );
                tip41.setDisplayLocation ( gripper1 () );
                tip42.setDisplayLocation ( gripper1 () );
            }
        } );

        return presentationSteps;
    }
View Full Code Here

Examples of com.alee.managers.tooltip.WebCustomTooltip

                    presentation.setSelected ( false );
                    TooltipManager.setTooltip ( presentation, presentationIcon, "Show presentation", TooltipWay.up );

                    ThreadUtils.sleepSafely ( 250 );

                    final WebCustomTooltip end =
                            TooltipManager.showOneTimeTooltip ( presentation, null, "Presentation has ended", TooltipWay.up );
                    WebTimer.delay ( 1500, new ActionListener ()
                    {
                        @Override
                        public void actionPerformed ( final ActionEvent e )
                        {
                            end.closeTooltip ();
                        }
                    } );
                }
            } );
        }
View Full Code Here

Examples of com.alee.managers.tooltip.WebCustomTooltip

                if ( !isSearchTipShownOnce () )
                {
                    setSearchTipShownOnce ();

                    final JRootPane rootPane = WebLookAndFeelDemo.this.getRootPane ();
                    final WebCustomTooltip searchTip = TooltipManager
                            .showOneTimeTooltip ( rootPane, new Point ( rootPane.getWidth () / 2, 0 ), SlidingSearch.searchIcon,
                                    "You can quickly navigate through components using search (Ctrl+F)", TooltipWay.down );

                    final HotkeyInfo searchTipHide = HotkeyManager.registerHotkey ( Hotkey.CTRL_F, new HotkeyRunnable ()
                    {
                        @Override
                        public void run ( final KeyEvent e )
                        {
                            searchTip.closeTooltip ();
                        }
                    } );
                    searchTip.addTooltipListener ( new TooltipAdapter ()
                    {
                        @Override
                        public void tooltipDestroyed ()
                        {
                            HotkeyManager.unregisterHotkey ( searchTipHide );
View Full Code Here

Examples of com.alee.managers.tooltip.WebCustomTooltip

                        update.setVisible ( true );

                        // Updating tips
                        final ImageIcon updateIcon = getUpdateIcon ();

                        final WebCustomTooltip versionTip = TooltipManager
                                .showOneTimeTooltip ( update, null, updateIcon, "New library version available: " + lv.toString () );
                        update.addMouseListener ( new MouseAdapter ()
                        {
                            @Override
                            public void mouseEntered ( final MouseEvent e )
                            {
                                versionTip.closeTooltip ();
                                update.removeMouseListener ( this );
                            }
                        } );

                        TooltipManager.setTooltip ( update, updateIcon, "Download new version: " + lv.toString () );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.