Package de.anormalmedia.vividswinganimations.panels

Examples of de.anormalmedia.vividswinganimations.panels.AlphaPanelAnimation


            JWindow window = (JWindow)target;
            contentPane = window.getContentPane();
        }
        if( contentPane instanceof AlphaPanel ) {
            AlphaPanel aPanel = (AlphaPanel)contentPane;
            return new AlphaPanelAnimation( aPanel, targetAlpha );
        }

        return new ComponentFadeAnimation( target, targetAlpha );
    }
View Full Code Here


            if( !animate ) {
                itemPanel.setAlpha( expand ? 1f : 0f );
                return;
            }

            AlphaPanelAnimation slidePanelAnimation = new AlphaPanelAnimation( itemPanel, expand ? 1f : 0f );
            slidePanelAnimation.setDuration( 300 );

            if( runner != null ) {
                runner.cancel();
            }
            runner = new DefaultAnimationRunner();
View Full Code Here

        ground.setBounds( r );
        alphaPanel.setBounds( r );
        slidePanel.setBounds( 0, 0, 200, contentPane.getHeight() );

        DefaultAnimationRunner runner = new DefaultAnimationRunner();
        AlphaPanelAnimation fadeIn = new AlphaPanelAnimation( alphaPanel, 1f );
        fadeIn.setStartOffset( 1000 );
        fadeIn.setDuration( 2000 );
        runner.addAnimation( fadeIn );

        AlphaPanelAnimation fadeOut = new AlphaPanelAnimation( alphaPanel, 0f );
        fadeOut.setStartOffset( 4000 );
        fadeOut.setDuration( 2000 );
        runner.addAnimation( fadeOut );

        SlidePanelAnimation slideIn = new SlidePanelAnimation( slidePanel, 1f );
        slideIn.setInterpolator( new AccelerateInterpolator() );
        slideIn.setStartOffset( 7000 );
View Full Code Here

TOP

Related Classes of de.anormalmedia.vividswinganimations.panels.AlphaPanelAnimation

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.