本文整理汇总了Java中javax.swing.DebugGraphics类的典型用法代码示例。如果您正苦于以下问题:Java DebugGraphics类的具体用法?Java DebugGraphics怎么用?Java DebugGraphics使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DebugGraphics类属于javax.swing包,在下文中一共展示了DebugGraphics类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: after
import javax.swing.DebugGraphics; //导入依赖的package包/类
@Override
protected void after() {
System.setErr(systemErr);
System.setOut(systemOut);
DebugGraphics.setLogStream(logStream);
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
示例2: testPaint
import javax.swing.DebugGraphics; //导入依赖的package包/类
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
}
示例3: testDrawDashedRect
import javax.swing.DebugGraphics; //导入依赖的package包/类
public void testDrawDashedRect() {
g = new DebugGraphics(g);
Color color = g.getColor();
BasicGraphicsUtils.drawDashedRect(g, x, y, w, h);
assertSame(color, g.getColor());
}