class sun.awt.windows.WCanvasPeer extends sun.awt.windows.WComponentPeer implements java.awt.peer.CanvasPeer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.awt.windows.WCanvasPeer
super_class: sun.awt.windows.WComponentPeer
{
private boolean eraseBackground;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(java.awt.Component);
descriptor: (Ljava/awt/Component;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.awt.windows.WComponentPeer.<init>:(Ljava/awt/Component;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/windows/WCanvasPeer;
0 2 1 target Ljava/awt/Component;
MethodParameters:
Name Flags
target
native void create(sun.awt.windows.WComponentPeer);
descriptor: (Lsun/awt/windows/WComponentPeer;)V
flags: (0x0100) ACC_NATIVE
MethodParameters:
Name Flags
parent
void initialize();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokestatic sun.awt.SunToolkit.getSunAwtNoerasebackground:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack: sun.awt.windows.WCanvasPeer
1: iconst_1
StackMap locals: sun.awt.windows.WCanvasPeer
StackMap stack: sun.awt.windows.WCanvasPeer int
2: putfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
3: invokestatic sun.awt.SunToolkit.getSunAwtErasebackgroundonresize:()Z
istore 1
start local 1 4: invokestatic sun.awt.PaintEventDispatcher.getPaintEventDispatcher:()Lsun/awt/PaintEventDispatcher;
5: aload 0
getfield sun.awt.windows.WCanvasPeer.target:Ljava/lang/Object;
checkcast java.awt.Component
invokevirtual sun.awt.PaintEventDispatcher.shouldDoNativeBackgroundErase:(Ljava/awt/Component;)Z
ifne 7
6: aload 0
iconst_0
putfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
7: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
iload 1
invokevirtual sun.awt.windows.WCanvasPeer.setNativeBackgroundErase:(ZZ)V
8: aload 0
invokespecial sun.awt.windows.WComponentPeer.initialize:()V
9: aload 0
getfield sun.awt.windows.WCanvasPeer.target:Ljava/lang/Object;
checkcast java.awt.Component
invokevirtual java.awt.Component.getBackground:()Ljava/awt/Color;
astore 2
start local 2 10: aload 2
ifnull 12
11: aload 0
aload 2
invokevirtual sun.awt.windows.WCanvasPeer.setBackground:(Ljava/awt/Color;)V
12: StackMap locals: java.awt.Color
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/awt/windows/WCanvasPeer;
4 13 1 eraseBackgroundOnResize Z
10 13 2 bg Ljava/awt/Color;
public void paint(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.windows.WCanvasPeer.target:Ljava/lang/Object;
checkcast java.awt.Component
invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
astore 2
start local 2 1: aload 1
instanceof java.awt.Graphics2D
ifne 3
2: aload 1
instanceof sun.awt.Graphics2Delegate
ifeq 5
3: StackMap locals: java.awt.Dimension
StackMap stack:
aload 1
iconst_0
iconst_0
aload 2
getfield java.awt.Dimension.width:I
aload 2
getfield java.awt.Dimension.height:I
invokevirtual java.awt.Graphics.clearRect:(IIII)V
4: goto 8
5: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.awt.windows.WCanvasPeer.target:Ljava/lang/Object;
checkcast java.awt.Component
invokevirtual java.awt.Component.getBackground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
6: aload 1
iconst_0
iconst_0
aload 2
getfield java.awt.Dimension.width:I
aload 2
getfield java.awt.Dimension.height:I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
7: aload 1
aload 0
getfield sun.awt.windows.WCanvasPeer.target:Ljava/lang/Object;
checkcast java.awt.Component
invokevirtual java.awt.Component.getForeground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
8: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial sun.awt.windows.WComponentPeer.paint:(Ljava/awt/Graphics;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/awt/windows/WCanvasPeer;
0 10 1 g Ljava/awt/Graphics;
1 10 2 d Ljava/awt/Dimension;
MethodParameters:
Name Flags
g
public boolean shouldClearRectBeforePaint();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/windows/WCanvasPeer;
void disableBackgroundErase();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
1: aload 0
iconst_0
iconst_0
invokevirtual sun.awt.windows.WCanvasPeer.setNativeBackgroundErase:(ZZ)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/windows/WCanvasPeer;
private native void setNativeBackgroundErase(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
doErase
doEraseOnResize
public java.awt.GraphicsConfiguration getAppropriateGraphicsConfiguration(java.awt.GraphicsConfiguration);
descriptor: (Ljava/awt/GraphicsConfiguration;)Ljava/awt/GraphicsConfiguration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/windows/WCanvasPeer;
0 1 1 gc Ljava/awt/GraphicsConfiguration;
MethodParameters:
Name Flags
gc
}
SourceFile: "WCanvasPeer.java"