Examples of addDirtyRegion()


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

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

            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

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

        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

Examples of javax.swing.RepaintManager.addDirtyRegion()

    f.getContentPane().add(l);
    l.setSize(100, 100);
    f.setSize(200, 200);
    f.setVisible(true);
    RepaintManager rm = RepaintManager.currentManager(l);
    rm.addDirtyRegion(l, 0, 0, l.getWidth(), l.getHeight());
    harness.check(rm.isCompletelyDirty(l), false);
    Rectangle dirty = rm.getDirtyRegion(l);
    harness.check(dirty.x, 0);
    harness.check(dirty.y, 0);
    harness.check(dirty.width, l.getWidth());
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.