Package com.alee.extended.image

Examples of com.alee.extended.image.WebImage


        return new GroupPanel ( container );
    }

    private WebImage createProgressIcon ( final String path )
    {
        final WebImage image = new WebImage ( loadIcon ( path ) );
        image.setPreferredSize ( new Dimension ( 24, 24 ) );
        image.setDisplayType ( DisplayType.fitComponent );
        return image;
    }
View Full Code Here


        // Transition panels
        boolean first = true;
        for ( ImageIcon image : images )
        {
            final ComponentTransition transition = new ComponentTransition ( new WebImage ( image ), createEffect () );
            imagesPanel.add ( transition );

            if ( first )
            {
                first = false;
View Full Code Here

    {
        for ( int i = 0; i < imagesPanel.getComponentCount (); i++ )
        {
            ComponentTransition componentTransition = ( ComponentTransition ) imagesPanel.getComponent ( i );
            ( ( SlideTransitionEffect ) componentTransition.getTransitionEffect () ).setDirection ( direction );
            componentTransition.performTransition ( new WebImage ( images.get ( i ) ) );
        }
    }
View Full Code Here

        componentTransition.addTransitionEffect ( createFadeSlideTransitionEffect () );
        componentTransition.addTransitionEffect ( createSlideTransitionEffect () );
        componentTransition.addTransitionEffect ( createZoomTransitionEffect () );

        // Effects
        final WebImage image1 = new WebImage ( loadIcon ( "pictures/1.jpg" ) );
        final WebImage image2 = new WebImage ( loadIcon ( "pictures/2.jpg" ) );
        final WebImage image3 = new WebImage ( loadIcon ( "pictures/3.jpg" ) );

        // Initial transition panel state
        componentTransition.setContent ( image1 );
        componentTransition.setPreferredSize ( SwingUtils.max ( image1, image2 ) );
View Full Code Here

            }
        }

        if ( group.isShowWatermark () )
        {
            final WebImage linkImage = new WebImage ( logoIcon );
            linkImage.setCursor ( Cursor.getPredefinedCursor ( Cursor.HAND_CURSOR ) );

            TooltipManager.setTooltip ( linkImage, linkIcon, "Library site", TooltipWay.trailing );

            linkImage.addMouseListener ( new MouseAdapter ()
            {
                @Override
                public void mousePressed ( final MouseEvent e )
                {
                    WebUtils.browseSiteSafely ( WebLookAndFeelDemo.WEBLAF_SITE );
View Full Code Here

            {
                hideClassSearchPopup ();
            }
        } );

        final WebImage leadingComponent = new WebImage ( classSearchIcon );
        leadingComponent.setMargin ( 2 );
        classSearchField.setLeadingComponent ( leadingComponent );

        classSearchPopup = new WebPopup ();
        classSearchPopup.setCloseOnFocusLoss ( true );
        classSearchPopup.add ( classSearchField );
View Full Code Here

            if ( GlobalConstants.IMAGE_FORMATS.contains ( ext ) )
            {
                // todo A better image viewer (actually a new component - WebImageViewer)

                // Image file viewer
                final WebImage image = new WebImage ();
                image.setIcon ( ImageUtils.loadImage ( getEntryInputStream ( entry ) ) );

                // Image scroll
                final WebScrollPane imageScroll = new WebScrollPane ( image, false );
                imageScroll.setVerticalScrollBarPolicy ( WebScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
                imageScroll.setHorizontalScrollBarPolicy ( WebScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS );
View Full Code Here

        progress.setVisible ( false );
    }

    private JComponent createBackgroundPanel ()
    {
        final WebImage wi = new WebImage ( WebLookAndFeelDemo.class, "icons/text.png" )
        {
            @Override
            protected void paintComponent ( final Graphics g )
            {
                final Graphics2D g2d = ( Graphics2D ) g;
                g2d.setPaint ( new LinearGradientPaint ( 0, 0, 0, getHeight (), new float[]{ 0f, 0.4f, 0.6f, 1f },
                        new Color[]{ StyleConstants.bottomBgColor, Color.WHITE, Color.WHITE, StyleConstants.bottomBgColor } ) );
                g2d.fill ( g2d.getClip () != null ? g2d.getClip () : getVisibleRect () );

                super.paintComponent ( g );
            }
        };
        wi.setDisplayType ( DisplayType.preferred );
        wi.setHorizontalAlignment ( SwingConstants.CENTER );
        wi.setVerticalAlignment ( SwingConstants.CENTER );
        return wi;
    }
View Full Code Here

    protected void initializeNotificationPopup ()
    {
        setLayout ( new BorderLayout ( 15, 5 ) );
        setAnimated ( true );

        iconImage = new WebImage ();
        westPanel = new AlignPanel ( iconImage, SwingConstants.CENTER, SwingConstants.CENTER );
        updateIcon ();

        contentPanel = new WebPanel ();
        contentPanel.setOpaque ( false );
View Full Code Here

        // Icon
        ImageIcon typeIcon = getLargeIcon ( messageType );
        if ( typeIcon != null )
        {
            WebImage image = new WebImage ( typeIcon );
            image.setVerticalAlignment ( WebImage.TOP );
            container.add ( new CenterPanel ( image, false, true ), BorderLayout.WEST );
        }

        // Message
        setContent ( message, false );
View Full Code Here

TOP

Related Classes of com.alee.extended.image.WebImage

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.