Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.SlidingTypeDescriptor


                            animation.stop();
                    }
                              
                    sheet.setAlpha(1.0f);
                } else {
                    SlidingTypeDescriptor slidingTypeDescriptor = (SlidingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.SLIDING);
                    if (slidingTypeDescriptor.isTransparentMode()) {
                        timer = new Timer(slidingTypeDescriptor.getTransparentDelay(), this);
                        timer.start();
                    }
                }
                JFrame frame = (JFrame) descriptor.getWindowAnchestor();
                SwingUtil.repaint(frame.getRootPane().getGlassPane());
View Full Code Here


        public void actionPerformed(ActionEvent e) {
            if (timer.isRunning()) {
                timer.stop();

                SlidingTypeDescriptor slidingTypeDescriptor = (SlidingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.SLIDING);
                animation.setAlpha(slidingTypeDescriptor.getTransparentRatio());
                animation.show();
            }
        }
View Full Code Here

    public void testSlidingTypeDescriptor() {
        assertNotNull(toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING));
    }

    public void testSlidingTypeDescriptorTransparentDelay() {
        SlidingTypeDescriptor descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        descriptor.setTransparentDelay(1000);

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(1000, descriptor.getTransparentDelay());
    }
View Full Code Here

    public void testSlidingTypeDescriptor() {
        assertNotNull(toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING));
    }

    public void testSlidingTypeDescriptorTransparentDelay() {
        SlidingTypeDescriptor descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        descriptor.setTransparentDelay(1000);

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(1000, descriptor.getTransparentDelay());
    }
View Full Code Here

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(1000, descriptor.getTransparentDelay());
    }

    public void testSlidingTypeDescriptorTransparentMode() {
        SlidingTypeDescriptor descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        descriptor.setTransparentMode(false);

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(false, descriptor.isTransparentMode());

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        descriptor.setTransparentMode(true);

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(true, descriptor.isTransparentMode());
    }
View Full Code Here

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(1000, descriptor.getTransparentDelay());
    }

    public void testSlidingTypeDescriptorTransparentMode() {
        SlidingTypeDescriptor descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        descriptor.setTransparentMode(false);

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(false, descriptor.isTransparentMode());

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        descriptor.setTransparentMode(true);

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(true, descriptor.isTransparentMode());
    }
View Full Code Here

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(true, descriptor.isTransparentMode());
    }

    public void testSlidingTypeDescriptorTransparentRatio() {
        SlidingTypeDescriptor descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        descriptor.setTransparentRatio(0.5f);

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(0.5f, descriptor.getTransparentRatio());
    }
View Full Code Here

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(0.5f, descriptor.getTransparentRatio());
    }

    public void testSlidingTypeDescriptorTransparentRatioUnuseCase() {
        SlidingTypeDescriptor descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        try {
            descriptor.setTransparentRatio(1.5f);
            fail("Must fail with 1.5f");
        } catch (Exception e) {}

        try {
            descriptor.setTransparentRatio(-0.1f);
            fail("Must fail with -0.1f");
        } catch (Exception e) {}
    }
View Full Code Here

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(true, descriptor.isTransparentMode());
    }

    public void testSlidingTypeDescriptorTransparentRatio() {
        SlidingTypeDescriptor descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        descriptor.setTransparentRatio(0.5f);

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(0.5f, descriptor.getTransparentRatio());
    }
View Full Code Here

        descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        assertEquals(0.5f, descriptor.getTransparentRatio());
    }

    public void testSlidingTypeDescriptorTransparentRatioUnuseCase() {
        SlidingTypeDescriptor descriptor = (SlidingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.SLIDING);
        try {
            descriptor.setTransparentRatio(1.5f);
            fail("Must fail with 1.5f");
        } catch (Exception e) {}

        try {
            descriptor.setTransparentRatio(-0.1f);
            fail("Must fail with -0.1f");
        } catch (Exception e) {}
    }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.SlidingTypeDescriptor

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.