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 // sun.awt.windows.WCanvasPeer this
        start local 1 // java.awt.Component target
         0: .line 45
            aload 0 /* this */
            aload 1 /* target */
            invokespecial sun.awt.windows.WComponentPeer.<init>:(Ljava/awt/Component;)V
         1: .line 46
            return
        end local 1 // java.awt.Component target
        end local 0 // sun.awt.windows.WCanvasPeer this
      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 // sun.awt.windows.WCanvasPeer this
         0: .line 53
            aload 0 /* this */
            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: .line 54
            invokestatic sun.awt.SunToolkit.getSunAwtErasebackgroundonresize:()Z
            istore 1 /* eraseBackgroundOnResize */
        start local 1 // boolean eraseBackgroundOnResize
         4: .line 57
            invokestatic sun.awt.PaintEventDispatcher.getPaintEventDispatcher:()Lsun/awt/PaintEventDispatcher;
         5: .line 58
            aload 0 /* this */
            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: .line 59
            aload 0 /* this */
            iconst_0
            putfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
         7: .line 61
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
            iload 1 /* eraseBackgroundOnResize */
            invokevirtual sun.awt.windows.WCanvasPeer.setNativeBackgroundErase:(ZZ)V
         8: .line 62
            aload 0 /* this */
            invokespecial sun.awt.windows.WComponentPeer.initialize:()V
         9: .line 63
            aload 0 /* this */
            getfield sun.awt.windows.WCanvasPeer.target:Ljava/lang/Object;
            checkcast java.awt.Component
            invokevirtual java.awt.Component.getBackground:()Ljava/awt/Color;
            astore 2 /* bg */
        start local 2 // java.awt.Color bg
        10: .line 64
            aload 2 /* bg */
            ifnull 12
        11: .line 65
            aload 0 /* this */
            aload 2 /* bg */
            invokevirtual sun.awt.windows.WCanvasPeer.setBackground:(Ljava/awt/Color;)V
        12: .line 67
      StackMap locals: java.awt.Color
      StackMap stack:
            return
        end local 2 // java.awt.Color bg
        end local 1 // boolean eraseBackgroundOnResize
        end local 0 // sun.awt.windows.WCanvasPeer this
      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 // sun.awt.windows.WCanvasPeer this
        start local 1 // java.awt.Graphics g
         0: .line 71
            aload 0 /* this */
            getfield sun.awt.windows.WCanvasPeer.target:Ljava/lang/Object;
            checkcast java.awt.Component
            invokevirtual java.awt.Component.getSize:()Ljava/awt/Dimension;
            astore 2 /* d */
        start local 2 // java.awt.Dimension d
         1: .line 72
            aload 1 /* g */
            instanceof java.awt.Graphics2D
            ifne 3
         2: .line 73
            aload 1 /* g */
            instanceof sun.awt.Graphics2Delegate
            ifeq 5
         3: .line 75
      StackMap locals: java.awt.Dimension
      StackMap stack:
            aload 1 /* g */
            iconst_0
            iconst_0
            aload 2 /* d */
            getfield java.awt.Dimension.width:I
            aload 2 /* d */
            getfield java.awt.Dimension.height:I
            invokevirtual java.awt.Graphics.clearRect:(IIII)V
         4: .line 76
            goto 8
         5: .line 78
      StackMap locals:
      StackMap stack:
            aload 1 /* g */
            aload 0 /* this */
            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: .line 79
            aload 1 /* g */
            iconst_0
            iconst_0
            aload 2 /* d */
            getfield java.awt.Dimension.width:I
            aload 2 /* d */
            getfield java.awt.Dimension.height:I
            invokevirtual java.awt.Graphics.fillRect:(IIII)V
         7: .line 80
            aload 1 /* g */
            aload 0 /* this */
            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: .line 82
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* g */
            invokespecial sun.awt.windows.WComponentPeer.paint:(Ljava/awt/Graphics;)V
         9: .line 83
            return
        end local 2 // java.awt.Dimension d
        end local 1 // java.awt.Graphics g
        end local 0 // sun.awt.windows.WCanvasPeer this
      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 // sun.awt.windows.WCanvasPeer this
         0: .line 87
            aload 0 /* this */
            getfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
            ireturn
        end local 0 // sun.awt.windows.WCanvasPeer this
      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 // sun.awt.windows.WCanvasPeer this
         0: .line 95
            aload 0 /* this */
            iconst_0
            putfield sun.awt.windows.WCanvasPeer.eraseBackground:Z
         1: .line 96
            aload 0 /* this */
            iconst_0
            iconst_0
            invokevirtual sun.awt.windows.WCanvasPeer.setNativeBackgroundErase:(ZZ)V
         2: .line 97
            return
        end local 0 // sun.awt.windows.WCanvasPeer this
      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 // sun.awt.windows.WCanvasPeer this
        start local 1 // java.awt.GraphicsConfiguration gc
         0: .line 114
            aload 1 /* gc */
            areturn
        end local 1 // java.awt.GraphicsConfiguration gc
        end local 0 // sun.awt.windows.WCanvasPeer this
      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"