Package com.alee.examples.content.presentation

Examples of com.alee.examples.content.presentation.OneTimeTooltipStep


        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 )
View Full Code Here

TOP

Related Classes of com.alee.examples.content.presentation.OneTimeTooltipStep

Copyright © 2018 www.massapicom. 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.