Package org.apache.pivot.wtk.effects

Examples of org.apache.pivot.wtk.effects.FadeDecorator


        reflectionWindow = (Window)wtkxSerializer.readObject(this, "reflection.wtkx");
        wtkxSerializer.reset();

        translucentFrame = (Frame)wtkxSerializer.readObject(this, "translucent.wtkx");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        translucentFrame.getDecorators().insert(fadeDecorator, 0);

        translucentFrame.getComponentMouseListeners().add(new ComponentMouseListener.Adapter() {
            @Override
            public void mouseOver(Component component) {
                fadeDecorator.setOpacity(0.9f);
                component.repaint();
            }

            @Override
            public void mouseOut(Component component) {
                fadeDecorator.setOpacity(0.5f);
                component.repaint();
            }
        });

        reflectionWindow.open(mainWindow);
View Full Code Here


        reflectionWindow = (Window)bxmlSerializer.readObject(DecoratorDemo.class,
            "reflection_window.bxml");
        translucentFrame = (Frame)bxmlSerializer.readObject(DecoratorDemo.class,
            "translucent_frame.bxml");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        translucentFrame.getDecorators().insert(fadeDecorator, 0);

        translucentFrame.getComponentMouseListeners().add(new ComponentMouseListener.Adapter() {
            @Override
            public void mouseOver(Component component) {
                fadeDecorator.setOpacity(0.9f);
                component.repaint();
            }

            @Override
            public void mouseOut(Component component) {
                fadeDecorator.setOpacity(0.5f);
                component.repaint();
            }
        });

        reflectionWindow.open(display);
View Full Code Here

        reflectionWindow = (Window)bxmlSerializer.readObject(DecoratorDemo.class,
            "reflection_window.bxml");
        translucentFrame = (Frame)bxmlSerializer.readObject(DecoratorDemo.class,
            "translucent_frame.bxml");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        translucentFrame.getDecorators().insert(fadeDecorator, 0);

        translucentFrame.getComponentMouseListeners().add(new ComponentMouseListener.Adapter() {
            @Override
            public void mouseOver(Component component) {
                fadeDecorator.setOpacity(0.9f);
                component.repaint();
            }

            @Override
            public void mouseOut(Component component) {
                fadeDecorator.setOpacity(0.5f);
                component.repaint();
            }
        });

        reflectionWindow.open(display);
View Full Code Here

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        reflectionWindow = (Window)wtkxSerializer.readObject(this, "reflection.wtkx");
        translucentFrame = (Frame)wtkxSerializer.readObject(this, "translucent.wtkx");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        translucentFrame.getDecorators().insert(fadeDecorator, 0);

        translucentFrame.getComponentMouseListeners().add(new ComponentMouseListener.Adapter() {
            @Override
            public void mouseOver(Component component) {
                fadeDecorator.setOpacity(0.9f);
                component.repaint();
            }

            @Override
            public void mouseOut(Component component) {
                fadeDecorator.setOpacity(0.5f);
                component.repaint();
            }
        });

        reflectionWindow.open(mainWindow);
View Full Code Here

        throws Exception {
        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        reflectionWindow = (Window)wtkxSerializer.readObject(this, "reflection.wtkx");
        translucentFrame = (Frame)wtkxSerializer.readObject(this, "translucent.wtkx");

        final FadeDecorator fadeDecorator = new FadeDecorator();
        translucentFrame.getDecorators().insert(fadeDecorator, 0);

        translucentFrame.getComponentMouseListeners().add(new ComponentMouseListener.Adapter() {
            @Override
            public void mouseOver(Component component) {
                fadeDecorator.setOpacity(0.9f);
                component.repaint();
            }

            @Override
            public void mouseOut(Component component) {
                fadeDecorator.setOpacity(0.5f);
                component.repaint();
            }
        });

        reflectionWindow.open(display);
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.effects.FadeDecorator

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.