public class sun.lwawt.macosx.CCustomCursor extends java.awt.Cursor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.lwawt.macosx.CCustomCursor
super_class: java.awt.Cursor
{
static java.awt.Dimension sMaxCursorSize;
descriptor: Ljava/awt/Dimension;
flags: (0x0008) ACC_STATIC
java.awt.Image fImage;
descriptor: Ljava/awt/Image;
flags: (0x0000)
java.awt.Point fHotspot;
descriptor: Ljava/awt/Point;
flags: (0x0000)
int fWidth;
descriptor: I
flags: (0x0000)
int fHeight;
descriptor: I
flags: (0x0000)
sun.lwawt.macosx.CImage fCImage;
descriptor: Lsun/lwawt/macosx/CImage;
flags: (0x0000)
static java.awt.Dimension getMaxCursorSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: getstatic sun.lwawt.macosx.CCustomCursor.sMaxCursorSize:Ljava/awt/Dimension;
ifnull 1
getstatic sun.lwawt.macosx.CCustomCursor.sMaxCursorSize:Ljava/awt/Dimension;
areturn
1: StackMap locals:
StackMap stack:
invokestatic java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment:()Ljava/awt/GraphicsEnvironment;
invokevirtual java.awt.GraphicsEnvironment.getDefaultScreenDevice:()Ljava/awt/GraphicsDevice;
invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
invokevirtual java.awt.GraphicsConfiguration.getBounds:()Ljava/awt/Rectangle;
astore 0
start local 0 2: new java.awt.Dimension
dup
aload 0
getfield java.awt.Rectangle.width:I
iconst_2
idiv
aload 0
getfield java.awt.Rectangle.height:I
iconst_2
idiv
invokespecial java.awt.Dimension.<init>:(II)V
dup
putstatic sun.lwawt.macosx.CCustomCursor.sMaxCursorSize:Ljava/awt/Dimension;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 3 0 bounds Ljava/awt/Rectangle;
public void <init>(java.awt.Image, java.awt.Point, java.lang.String);
descriptor: (Ljava/awt/Image;Ljava/awt/Point;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 3
invokespecial java.awt.Cursor.<init>:(Ljava/lang/String;)V
1: aload 0
aload 1
putfield sun.lwawt.macosx.CCustomCursor.fImage:Ljava/awt/Image;
2: aload 0
aload 2
putfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
3: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
astore 4
start local 4 4: new java.awt.Canvas
dup
invokespecial java.awt.Canvas.<init>:()V
astore 5
start local 5 5: new java.awt.MediaTracker
dup
aload 5
invokespecial java.awt.MediaTracker.<init>:(Ljava/awt/Component;)V
astore 6
start local 6 6: aload 6
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fImage:Ljava/awt/Image;
iconst_0
invokevirtual java.awt.MediaTracker.addImage:(Ljava/awt/Image;I)V
7: aload 6
invokevirtual java.awt.MediaTracker.waitForAll:()V
8: goto 10
StackMap locals: sun.lwawt.macosx.CCustomCursor java.awt.Image java.awt.Point java.lang.String java.awt.Toolkit java.awt.Component java.awt.MediaTracker
StackMap stack: java.lang.InterruptedException
9: pop
10: StackMap locals:
StackMap stack:
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fImage:Ljava/awt/Image;
aload 5
invokevirtual java.awt.Image.getWidth:(Ljava/awt/image/ImageObserver;)I
istore 7
start local 7 11: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fImage:Ljava/awt/Image;
aload 5
invokevirtual java.awt.Image.getHeight:(Ljava/awt/image/ImageObserver;)I
istore 8
start local 8 12: aload 6
invokevirtual java.awt.MediaTracker.isErrorAny:()Z
ifne 13
iload 7
iflt 13
iload 8
ifge 17
13: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
iconst_0
dup_x1
putfield java.awt.Point.y:I
putfield java.awt.Point.x:I
14: iconst_1
dup
istore 8
istore 7
15: aload 0
iload 7
iload 8
invokestatic sun.lwawt.macosx.CCustomCursor.createTransparentImage:(II)Ljava/awt/image/BufferedImage;
putfield sun.lwawt.macosx.CCustomCursor.fImage:Ljava/awt/Image;
16: goto 20
17: StackMap locals:
StackMap stack:
aload 4
iload 7
iload 8
invokevirtual java.awt.Toolkit.getBestCursorSize:(II)Ljava/awt/Dimension;
astore 9
start local 9 18: aload 9
getfield java.awt.Dimension.width:I
istore 7
19: aload 9
getfield java.awt.Dimension.height:I
istore 8
end local 9 20: StackMap locals:
StackMap stack:
aload 0
iload 7
putfield sun.lwawt.macosx.CCustomCursor.fWidth:I
21: aload 0
iload 8
putfield sun.lwawt.macosx.CCustomCursor.fHeight:I
22: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
getfield java.awt.Point.x:I
iload 7
if_icmpge 23
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
getfield java.awt.Point.y:I
iload 8
if_icmpge 23
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
getfield java.awt.Point.x:I
iflt 23
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
getfield java.awt.Point.y:I
ifge 24
23: StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
ldc "invalid hotSpot"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals:
StackMap stack:
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
getfield java.awt.Point.x:I
iload 7
if_icmplt 27
25: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
iload 7
iconst_1
isub
putfield java.awt.Point.x:I
26: goto 29
StackMap locals:
StackMap stack:
27: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
getfield java.awt.Point.x:I
ifge 29
28: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
iconst_0
putfield java.awt.Point.x:I
29: StackMap locals:
StackMap stack:
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
getfield java.awt.Point.y:I
iload 8
if_icmplt 32
30: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
iload 8
iconst_1
isub
putfield java.awt.Point.y:I
31: goto 34
StackMap locals:
StackMap stack:
32: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
getfield java.awt.Point.y:I
ifge 34
33: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
iconst_0
putfield java.awt.Point.y:I
34: StackMap locals:
StackMap stack:
return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lsun/lwawt/macosx/CCustomCursor;
0 35 1 cursor Ljava/awt/Image;
0 35 2 hotSpot Ljava/awt/Point;
0 35 3 name Ljava/lang/String;
4 35 4 toolkit Ljava/awt/Toolkit;
5 35 5 c Ljava/awt/Component;
6 35 6 tracker Ljava/awt/MediaTracker;
11 35 7 width I
12 35 8 height I
18 20 9 nativeSize Ljava/awt/Dimension;
Exception table:
from to target type
7 8 9 Class java.lang.InterruptedException
Exceptions:
throws java.lang.IndexOutOfBoundsException, java.awt.HeadlessException
MethodParameters:
Name Flags
cursor final
hotSpot final
name final
private static java.awt.image.BufferedImage createTransparentImage(int, int);
descriptor: (II)Ljava/awt/image/BufferedImage;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: invokestatic java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment:()Ljava/awt/GraphicsEnvironment;
1: astore 2
start local 2 2: aload 2
invokevirtual java.awt.GraphicsEnvironment.getDefaultScreenDevice:()Ljava/awt/GraphicsDevice;
astore 3
start local 3 3: aload 3
invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
astore 4
start local 4 4: aload 4
iload 0
iload 1
iconst_2
invokevirtual java.awt.GraphicsConfiguration.createCompatibleImage:(III)Ljava/awt/image/BufferedImage;
astore 5
start local 5 5: aload 5
invokevirtual java.awt.image.BufferedImage.getGraphics:()Ljava/awt/Graphics;
checkcast java.awt.Graphics2D
astore 6
start local 6 6: aload 6
new java.awt.Color
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Color.<init>:(IIII)V
invokevirtual java.awt.Graphics2D.setBackground:(Ljava/awt/Color;)V
7: aload 6
iconst_0
iconst_0
iload 0
iload 1
invokevirtual java.awt.Graphics2D.clearRect:(IIII)V
8: aload 6
invokevirtual java.awt.Graphics2D.dispose:()V
9: aload 5
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 w I
0 10 1 h I
2 10 2 ge Ljava/awt/GraphicsEnvironment;
3 10 3 gs Ljava/awt/GraphicsDevice;
4 10 4 gc Ljava/awt/GraphicsConfiguration;
5 10 5 img Ljava/awt/image/BufferedImage;
6 10 6 g Ljava/awt/Graphics2D;
MethodParameters:
Name Flags
w
h
public static java.awt.Dimension getBestCursorSize(int, int);
descriptor: (II)Ljava/awt/Dimension;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: invokestatic sun.lwawt.macosx.CCustomCursor.getMaxCursorSize:()Ljava/awt/Dimension;
astore 2
start local 2 1: new java.awt.Dimension
dup
iconst_1
iload 0
invokestatic java.lang.Math.abs:(I)I
invokestatic java.lang.Math.max:(II)I
iconst_1
iload 1
invokestatic java.lang.Math.abs:(I)I
invokestatic java.lang.Math.max:(II)I
invokespecial java.awt.Dimension.<init>:(II)V
astore 3
start local 3 2: new java.awt.Dimension
dup
aload 3
getfield java.awt.Dimension.width:I
aload 2
getfield java.awt.Dimension.width:I
invokestatic java.lang.Math.min:(II)I
aload 3
getfield java.awt.Dimension.height:I
aload 2
getfield java.awt.Dimension.height:I
invokestatic java.lang.Math.min:(II)I
invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 preferredWidth I
0 3 1 preferredHeight I
1 3 2 maxCursorSize Ljava/awt/Dimension;
2 3 3 d Ljava/awt/Dimension;
MethodParameters:
Name Flags
preferredWidth final
preferredHeight final
long getImageData();
descriptor: ()J
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fCImage:Lsun/lwawt/macosx/CImage;
ifnull 2
1: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fCImage:Lsun/lwawt/macosx/CImage;
getfield sun.lwawt.macosx.CImage.ptr:J
lreturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.lwawt.macosx.CImage.getCreator:()Lsun/lwawt/macosx/CImage$Creator;
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fImage:Ljava/awt/Image;
invokevirtual sun.lwawt.macosx.CImage$Creator.createFromImage:(Ljava/awt/Image;)Lsun/lwawt/macosx/CImage;
putfield sun.lwawt.macosx.CCustomCursor.fCImage:Lsun/lwawt/macosx/CImage;
3: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fCImage:Lsun/lwawt/macosx/CImage;
ifnonnull 5
4: lconst_0
lreturn
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fCImage:Lsun/lwawt/macosx/CImage;
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fWidth:I
i2d
aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHeight:I
i2d
invokevirtual sun.lwawt.macosx.CImage.resizeRepresentations:(DD)V
6: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fCImage:Lsun/lwawt/macosx/CImage;
getfield sun.lwawt.macosx.CImage.ptr:J
7: lreturn
8: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
9: lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/lwawt/macosx/CCustomCursor;
Exception table:
from to target type
2 4 8 Class java.lang.IllegalArgumentException
5 7 8 Class java.lang.IllegalArgumentException
java.awt.Point getHotSpot();
descriptor: ()Ljava/awt/Point;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.lwawt.macosx.CCustomCursor.fHotspot:Ljava/awt/Point;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/lwawt/macosx/CCustomCursor;
}
SourceFile: "CCustomCursor.java"
InnerClasses:
public Creator = sun.lwawt.macosx.CImage$Creator of sun.lwawt.macosx.CImage