Package gov.nasa.arc.mct.gui.View

Examples of gov.nasa.arc.mct.gui.View.GlassPanelRepaintManager.addDirtyRegion()


        };
       
        // Test control manifestation and its glass panel
        JPanel controlPanel = new JPanel();
        ControlWrapper controlWrapper = new ControlWrapper(controlPanel);
        repaintManager.addDirtyRegion(controlPanel, 0, 0, 0, 0);
        Assert.assertSame(reference.get(), controlWrapper.getGlassPanel());

        // Test view manifestation and its glass panel
        View manifestation = new View() {
            @Override
View Full Code Here


            public AbstractComponent getManifestedComponent() {
                return Mockito.mock(AbstractComponent.class);
           
        };
       
        repaintManager.addDirtyRegion(manifestation, 0, 0, 0, 0);
        Assert.assertSame(reference.get(), manifestation);
       
        // Test other unrelated JComponent
        JComponent widget = Mockito.mock(JComponent.class);
        repaintManager.addDirtyRegion(widget, 0, 0, 0, 0);
View Full Code Here

        repaintManager.addDirtyRegion(manifestation, 0, 0, 0, 0);
        Assert.assertSame(reference.get(), manifestation);
       
        // Test other unrelated JComponent
        JComponent widget = Mockito.mock(JComponent.class);
        repaintManager.addDirtyRegion(widget, 0, 0, 0, 0);
        Assert.assertSame(reference.get(), widget);
    }

    @SuppressWarnings("serial")
    private class MockManifestation extends View {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.