Java 类javax.swing.DebugGraphics 实例源码

项目:evosuite    文件:Stubbing.java   
@Override
protected void after() {
    System.setErr(systemErr); 
    System.setOut(systemOut); 
    DebugGraphics.setLogStream(logStream);
    java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
项目:cn1    文件:ContainerRTest.java   
public final void testPaint() {
    // Regression test for HARMONY-2527
    final Component c = new Frame();
    c.paint(c.getGraphics());
    // End of regression for HARMONY-2527

    // Regression for HARMONY-3443
    final Graphics g;
    final Frame f = new Frame();

    f.add(new JButton());
    f.setVisible(true);
    g = f.getGraphics();

    try {
        g.setClip(null);
        assertNull(g.getClip());
        f.paint(g);
    } finally {
        f.dispose();
    }
    // End of regression for HARMONY-3443

    // Regression for HARMONY-3430
    new Container().paint(new DebugGraphics());
    // End of regression for HARMONY-3430
}
项目:freeVM    文件:ContainerRTest.java   
public final void testPaint() {
    // Regression test for HARMONY-2527
    final Component c = new Frame();
    c.paint(c.getGraphics());
    // End of regression for HARMONY-2527

    // Regression for HARMONY-3443
    final Graphics g;
    final Frame f = new Frame();

    f.add(new JButton());
    f.setVisible(true);
    g = f.getGraphics();

    try {
        g.setClip(null);
        assertNull(g.getClip());
        f.paint(g);
    } finally {
        f.dispose();
    }
    // End of regression for HARMONY-3443

    // Regression for HARMONY-3430
    new Container().paint(new DebugGraphics());
    // End of regression for HARMONY-3430
}
项目:cn1    文件:BasicGraphicsUtilsTest.java   
public void testDrawDashedRect() {
    g = new DebugGraphics(g);
    Color color = g.getColor();
    BasicGraphicsUtils.drawDashedRect(g, x, y, w, h);
    assertSame(color, g.getColor());
}
项目:freeVM    文件:BasicGraphicsUtilsTest.java   
public void testDrawDashedRect() {
    g = new DebugGraphics(g);
    Color color = g.getColor();
    BasicGraphicsUtils.drawDashedRect(g, x, y, w, h);
    assertSame(color, g.getColor());
}
项目:freeVM    文件:BasicGraphicsUtilsTest.java   
public void testDrawDashedRect() {
    g = new DebugGraphics(g);
    Color color = g.getColor();
    BasicGraphicsUtils.drawDashedRect(g, x, y, w, h);
    assertSame(color, g.getColor());
}