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.image:Ljava/awt/image/BufferedImage;
ifnull 7
4: 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 7
5: 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 7
6: iconst_0
goto 8
StackMap locals:
StackMap stack:
7: iconst_1
StackMap locals:
StackMap stack: int
8: istore 2
start local 2 9: iload 2
ifeq 14
10: aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
imul
istore 3
start local 3 11: aload 0
getfield javax.swing.colorchooser.DiagramComponent.array:[I
ifnull 12
aload 0
getfield javax.swing.colorchooser.DiagramComponent.array:[I
arraylength
iload 3
if_icmpge 13
12: StackMap locals: int int
StackMap stack:
aload 0
iload 3
newarray 10
putfield javax.swing.colorchooser.DiagramComponent.array:[I
13: 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 14: 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 15: fconst_1
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
iconst_1
isub
i2f
fdiv
fstore 4
start local 4 16: iconst_0
istore 5
start local 5 17: fconst_0
fstore 6
start local 6 18: iconst_0
istore 7
start local 7 19: goto 35
20: 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 28
21: fconst_0
fstore 8
start local 8 22: iconst_0
istore 9
start local 9 23: goto 26
24: 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
25: iinc 9 1
fload 8
fload 3
fadd
fstore 8
iinc 5 1
StackMap locals:
StackMap stack:
26: iload 9
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
if_icmplt 24
end local 9 end local 8 27: goto 34
28: 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 29: iconst_0
istore 9
start local 9 30: goto 33
31: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.colorchooser.DiagramComponent.array:[I
iload 5
iload 8
iastore
32: iinc 9 1
iinc 5 1
StackMap locals:
StackMap stack:
33: iload 9
aload 0
getfield javax.swing.colorchooser.DiagramComponent.width:I
if_icmplt 31
end local 9 end local 8 34: StackMap locals:
StackMap stack:
iinc 7 1
fload 6
fload 4
fadd
fstore 6
StackMap locals:
StackMap stack:
35: iload 7
aload 0
getfield javax.swing.colorchooser.DiagramComponent.height:I
if_icmplt 20
end local 7 end local 6 end local 5 end local 4 end local 3 36: 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
37: 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
38: aload 0
invokevirtual javax.swing.colorchooser.DiagramComponent.isEnabled:()Z
ifeq 52
39: aload 0
dup
getfield javax.swing.colorchooser.DiagramComponent.width:I
iconst_1
isub
putfield javax.swing.colorchooser.DiagramComponent.width:I
40: aload 0
dup
getfield javax.swing.colorchooser.DiagramComponent.height:I
iconst_1
isub
putfield javax.swing.colorchooser.DiagramComponent.height:I
41: aload 1
getstatic java.awt.Color.WHITE:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setXORMode:(Ljava/awt/Color;)V
42: aload 1
getstatic java.awt.Color.BLACK:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
43: aload 0
getfield javax.swing.colorchooser.DiagramComponent.diagram:Z
ifeq 49
44: 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 45: 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 46: aload 1
iload 3
bipush 8
isub
iload 4
iload 3
bipush 8
iadd
iload 4
invokevirtual java.awt.Graphics.drawLine:(IIII)V
47: 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 48: goto 51
49: 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 50: 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 51: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.Graphics.setPaintMode:()V
52: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 53 0 this Ljavax/swing/colorchooser/DiagramComponent;
0 53 1 g Ljava/awt/Graphics;
9 53 2 update Z
11 14 3 size I
15 36 3 dx F
16 36 4 dy F
17 36 5 offset I
18 36 6 y F
19 36 7 h I
22 27 8 x F
23 27 9 w I
29 34 8 color I
30 34 9 w I
45 48 3 x I
46 48 4 y I
50 51 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"