final class javax.swing.colorchooser.DiagramComponent extends javax.swing.JComponent implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: javax.swing.colorchooser.DiagramComponent
super_class: javax.swing.JComponent
{
private final javax.swing.colorchooser.ColorPanel panel;
descriptor: Ljavax/swing/colorchooser/ColorPanel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean diagram;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.awt.Insets insets;
descriptor: Ljava/awt/Insets;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int width;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int height;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int[] array;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private java.awt.image.BufferedImage image;
descriptor: Ljava/awt/image/BufferedImage;
flags: (0x0002) ACC_PRIVATE
void <init>(javax.swing.colorchooser.ColorPanel, boolean);
descriptor: (Ljavax/swing/colorchooser/ColorPanel;Z)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.swing.JComponent.<init>:()V
1: aload 0
new java.awt.Insets
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Insets.<init>:(IIII)V
putfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
2: aload 0
aload 1
putfield javax.swing.colorchooser.DiagramComponent.panel:Ljavax/swing/colorchooser/ColorPanel;
3: aload 0
iload 2
putfield javax.swing.colorchooser.DiagramComponent.diagram:Z
4: aload 0
aload 0
invokevirtual javax.swing.colorchooser.DiagramComponent.addMouseListener:(Ljava/awt/event/MouseListener;)V
5: aload 0
aload 0
invokevirtual javax.swing.colorchooser.DiagramComponent.addMouseMotionListener:(Ljava/awt/event/MouseMotionListener;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 7 1 panel Ljavax/swing/colorchooser/ColorPanel;
0 7 2 diagram Z
MethodParameters:
Name Flags
panel
diagram
protected void paintComponent(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=10, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
invokevirtual javax.swing.colorchooser.DiagramComponent.getInsets:(Ljava/awt/Insets;)Ljava/awt/Insets;
pop
1: aload 0
aload 0
invokevirtual javax.swing.colorchooser.DiagramComponent.getWidth:()I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
isub
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
isub
putfield javax.swing.colorchooser.DiagramComponent.width:I
2: aload 0
aload 0
invokevirtual javax.swing.colorchooser.DiagramComponent.getHeight:()I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
isub
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.bottom:I
isub
putfield javax.swing.colorchooser.DiagramComponent.height:I
3: aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
ifle 4
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
ifgt 5
4: StackMap locals:
StackMap stack:
return
5: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.colorchooser.DiagramComponent.image:Ljava/awt/image/BufferedImage;
ifnull 9
6: aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.image:Ljava/awt/image/BufferedImage;
invokevirtual java.awt.image.BufferedImage.getWidth:()I
if_icmpne 9
7: aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.image:Ljava/awt/image/BufferedImage;
invokevirtual java.awt.image.BufferedImage.getHeight:()I
if_icmpne 9
8: iconst_0
goto 10
StackMap locals:
StackMap stack:
9: iconst_1
StackMap locals:
StackMap stack: int
10: istore 2
start local 2 11: iload 2
ifeq 16
12: aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
imul
istore 3
start local 3 13: aload 0
getfield javax.swing.colorchooser.DiagramComponent.array:[I
ifnull 14
aload 0
getfield javax.swing.colorchooser.DiagramComponent.array:[I
arraylength
iload 3
if_icmpge 15
14: StackMap locals: int int
StackMap stack:
aload 0
iload 3
newarray 10
putfield javax.swing.colorchooser.DiagramComponent.array:[I
15: StackMap locals:
StackMap stack:
aload 0
new java.awt.image.BufferedImage
dup
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
iconst_1
invokespecial java.awt.image.BufferedImage.<init>:(III)V
putfield javax.swing.colorchooser.DiagramComponent.image:Ljava/awt/image/BufferedImage;
end local 3 16: StackMap locals:
StackMap stack:
fconst_1
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
iconst_1
isub
i2f
fdiv
fstore 3
start local 3 17: fconst_1
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
iconst_1
isub
i2f
fdiv
fstore 4
start local 4 18: iconst_0
istore 5
start local 5 19: fconst_0
fstore 6
start local 6 20: iconst_0
istore 7
start local 7 21: goto 37
22: StackMap locals: javax.swing.colorchooser.DiagramComponent java.awt.Graphics int float float int float int
StackMap stack:
aload 0
getfield javax.swing.colorchooser.DiagramComponent.diagram:Z
ifeq 30
23: fconst_0
fstore 8
start local 8 24: iconst_0
istore 9
start local 9 25: goto 28
26: StackMap locals: float int
StackMap stack:
aload 0
getfield javax.swing.colorchooser.DiagramComponent.array:[I
iload 5
aload 0
getfield javax.swing.colorchooser.DiagramComponent.panel:Ljavax/swing/colorchooser/ColorPanel;
fload 8
fload 6
invokevirtual javax.swing.colorchooser.ColorPanel.getColor:(FF)I
iastore
27: iinc 9 1
fload 8
fload 3
fadd
fstore 8
iinc 5 1
StackMap locals:
StackMap stack:
28: iload 9
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
if_icmplt 26
end local 9 end local 8 29: goto 36
30: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.colorchooser.DiagramComponent.panel:Ljavax/swing/colorchooser/ColorPanel;
fload 6
invokevirtual javax.swing.colorchooser.ColorPanel.getColor:(F)I
istore 8
start local 8 31: iconst_0
istore 9
start local 9 32: goto 35
33: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.colorchooser.DiagramComponent.array:[I
iload 5
iload 8
iastore
34: iinc 9 1
iinc 5 1
StackMap locals:
StackMap stack:
35: iload 9
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
if_icmplt 33
end local 9 end local 8 36: StackMap locals:
StackMap stack:
iinc 7 1
fload 6
fload 4
fadd
fstore 6
StackMap locals:
StackMap stack:
37: iload 7
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
if_icmplt 22
end local 7 end local 6 end local 5 end local 4 end local 3 38: aload 0
getfield javax.swing.colorchooser.DiagramComponent.image:Ljava/awt/image/BufferedImage;
iconst_0
iconst_0
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.array:[I
iconst_0
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
invokevirtual java.awt.image.BufferedImage.setRGB:(IIII[III)V
39: aload 1
aload 0
getfield javax.swing.colorchooser.DiagramComponent.image:Ljava/awt/image/BufferedImage;
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
aload 0
invokevirtual java.awt.Graphics.drawImage:(Ljava/awt/Image;IIIILjava/awt/image/ImageObserver;)Z
pop
40: aload 0
invokevirtual javax.swing.colorchooser.DiagramComponent.isEnabled:()Z
ifeq 54
41: aload 0
dup
getfield javax.swing.colorchooser.DiagramComponent.width:I
iconst_1
isub
putfield javax.swing.colorchooser.DiagramComponent.width:I
42: aload 0
dup
getfield javax.swing.colorchooser.DiagramComponent.height:I
iconst_1
isub
putfield javax.swing.colorchooser.DiagramComponent.height:I
43: aload 1
getstatic java.awt.Color.WHITE:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setXORMode:(Ljava/awt/Color;)V
44: aload 1
getstatic java.awt.Color.BLACK:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
45: aload 0
getfield javax.swing.colorchooser.DiagramComponent.diagram:Z
ifeq 51
46: aload 0
getfield javax.swing.colorchooser.DiagramComponent.panel:Ljavax/swing/colorchooser/ColorPanel;
invokevirtual javax.swing.colorchooser.ColorPanel.getValueX:()F
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
invokestatic javax.swing.colorchooser.DiagramComponent.getValue:(FII)I
istore 3
start local 3 47: aload 0
getfield javax.swing.colorchooser.DiagramComponent.panel:Ljavax/swing/colorchooser/ColorPanel;
invokevirtual javax.swing.colorchooser.ColorPanel.getValueY:()F
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
invokestatic javax.swing.colorchooser.DiagramComponent.getValue:(FII)I
istore 4
start local 4 48: aload 1
iload 3
bipush 8
isub
iload 4
iload 3
bipush 8
iadd
iload 4
invokevirtual java.awt.Graphics.drawLine:(IIII)V
49: aload 1
iload 3
iload 4
bipush 8
isub
iload 3
iload 4
bipush 8
iadd
invokevirtual java.awt.Graphics.drawLine:(IIII)V
end local 4 end local 3 50: goto 53
51: StackMap locals: javax.swing.colorchooser.DiagramComponent java.awt.Graphics int
StackMap stack:
aload 0
getfield javax.swing.colorchooser.DiagramComponent.panel:Ljavax/swing/colorchooser/ColorPanel;
invokevirtual javax.swing.colorchooser.ColorPanel.getValueZ:()F
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
invokestatic javax.swing.colorchooser.DiagramComponent.getValue:(FII)I
istore 3
start local 3 52: aload 1
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
iload 3
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
iadd
iload 3
invokevirtual java.awt.Graphics.drawLine:(IIII)V
end local 3 53: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.Graphics.setPaintMode:()V
54: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 55 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 55 1 g Ljava/awt/Graphics;
11 55 2 update Z
13 16 3 size I
17 38 3 dx F
18 38 4 dy F
19 38 5 offset I
20 38 6 y F
21 38 7 h I
24 29 8 x F
25 29 9 w I
31 36 8 color I
32 36 9 w I
47 50 3 x I
48 50 4 y I
52 53 3 z I
MethodParameters:
Name Flags
g
public void mousePressed(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.swing.colorchooser.DiagramComponent.mouseDragged:(Ljava/awt/event/MouseEvent;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 2 1 event Ljava/awt/event/MouseEvent;
MethodParameters:
Name Flags
event
public void mouseReleased(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 1 1 event Ljava/awt/event/MouseEvent;
MethodParameters:
Name Flags
event
public void mouseClicked(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 1 1 event Ljava/awt/event/MouseEvent;
MethodParameters:
Name Flags
event
public void mouseEntered(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 1 1 event Ljava/awt/event/MouseEvent;
MethodParameters:
Name Flags
event
public void mouseExited(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 1 1 event Ljava/awt/event/MouseEvent;
MethodParameters:
Name Flags
event
public void mouseMoved(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 1 1 event Ljava/awt/event/MouseEvent;
MethodParameters:
Name Flags
event
public void mouseDragged(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.swing.colorchooser.DiagramComponent.isEnabled:()Z
ifeq 7
1: aload 1
invokevirtual java.awt.event.MouseEvent.getY:()I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
invokestatic javax.swing.colorchooser.DiagramComponent.getValue:(III)F
fstore 2
start local 2 2: aload 0
getfield javax.swing.colorchooser.DiagramComponent.diagram:Z
ifeq 6
3: aload 1
invokevirtual java.awt.event.MouseEvent.getX:()I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.insets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
invokestatic javax.swing.colorchooser.DiagramComponent.getValue:(III)F
fstore 3
start local 3 4: aload 0
getfield javax.swing.colorchooser.DiagramComponent.panel:Ljavax/swing/colorchooser/ColorPanel;
fload 3
fload 2
invokevirtual javax.swing.colorchooser.ColorPanel.setValue:(FF)V
end local 3 5: goto 7
6: StackMap locals: float
StackMap stack:
aload 0
getfield javax.swing.colorchooser.DiagramComponent.panel:Ljavax/swing/colorchooser/ColorPanel;
fload 2
invokevirtual javax.swing.colorchooser.ColorPanel.setValue:(F)V
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 8 1 event Ljava/awt/event/MouseEvent;
2 7 2 y F
4 5 3 x F
MethodParameters:
Name Flags
event
private static int getValue(float, int, int);
descriptor: (FII)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
fload 0
iload 2
i2f
fmul
f2i
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value F
0 1 1 min I
0 1 2 max I
MethodParameters:
Name Flags
value
min
max
private static float getValue(int, int, int);
descriptor: (III)F
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 0
if_icmpge 6
1: iload 0
iload 1
isub
istore 0
2: iload 0
iload 2
if_icmpge 4
3: iload 0
i2f
iload 2
i2f
fdiv
goto 5
4: StackMap locals:
StackMap stack:
fconst_1
5: StackMap locals:
StackMap stack: float
freturn
6: StackMap locals:
StackMap stack:
fconst_0
freturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 value I
0 7 1 min I
0 7 2 max I
MethodParameters:
Name Flags
value
min
max
}
SourceFile: "DiagramComponent.java"