class javax.swing.TablePrintable implements java.awt.print.Printable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.TablePrintable
super_class: java.lang.Object
{
private javax.swing.JTable table;
descriptor: Ljavax/swing/JTable;
flags: (0x0002) ACC_PRIVATE
private javax.swing.table.JTableHeader ;
descriptor: Ljavax/swing/table/JTableHeader;
flags: (0x0002) ACC_PRIVATE
private javax.swing.table.TableColumnModel colModel;
descriptor: Ljavax/swing/table/TableColumnModel;
flags: (0x0002) ACC_PRIVATE
private int totalColWidth;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private javax.swing.JTable$PrintMode printMode;
descriptor: Ljavax/swing/JTable$PrintMode;
flags: (0x0002) ACC_PRIVATE
private java.text.MessageFormat ;
descriptor: Ljava/text/MessageFormat;
flags: (0x0002) ACC_PRIVATE
private java.text.MessageFormat ;
descriptor: Ljava/text/MessageFormat;
flags: (0x0002) ACC_PRIVATE
private int last;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int row;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int col;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.awt.Rectangle clip;
descriptor: Ljava/awt/Rectangle;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.awt.Rectangle hclip;
descriptor: Ljava/awt/Rectangle;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.awt.Rectangle tempRect;
descriptor: Ljava/awt/Rectangle;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final int H_F_SPACE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final float ;
descriptor: F
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 18.0
private static final float ;
descriptor: F
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 12.0
private java.awt.Font ;
descriptor: Ljava/awt/Font;
flags: (0x0002) ACC_PRIVATE
private java.awt.Font ;
descriptor: Ljava/awt/Font;
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljavax/swing/TablePrintable;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic javax.swing.TablePrintable.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(javax.swing.JTable, javax.swing.JTable$PrintMode, java.text.MessageFormat, java.text.MessageFormat);
descriptor: (Ljavax/swing/JTable;Ljavax/swing/JTable$PrintMode;Ljava/text/MessageFormat;Ljava/text/MessageFormat;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield javax.swing.TablePrintable.last:I
2: aload 0
iconst_0
putfield javax.swing.TablePrintable.row:I
3: aload 0
iconst_0
putfield javax.swing.TablePrintable.col:I
4: aload 0
new java.awt.Rectangle
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Rectangle.<init>:(IIII)V
putfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
5: aload 0
new java.awt.Rectangle
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Rectangle.<init>:(IIII)V
putfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
6: aload 0
new java.awt.Rectangle
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Rectangle.<init>:(IIII)V
putfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
7: aload 0
aload 1
putfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
8: aload 0
aload 1
invokevirtual javax.swing.JTable.getTableHeader:()Ljavax/swing/table/JTableHeader;
putfield javax.swing.TablePrintable.header:Ljavax/swing/table/JTableHeader;
9: aload 0
aload 1
invokevirtual javax.swing.JTable.getColumnModel:()Ljavax/swing/table/TableColumnModel;
putfield javax.swing.TablePrintable.colModel:Ljavax/swing/table/TableColumnModel;
10: aload 0
aload 0
getfield javax.swing.TablePrintable.colModel:Ljavax/swing/table/TableColumnModel;
invokeinterface javax.swing.table.TableColumnModel.getTotalColumnWidth:()I
putfield javax.swing.TablePrintable.totalColWidth:I
11: aload 0
getfield javax.swing.TablePrintable.header:Ljavax/swing/table/JTableHeader;
ifnull 13
12: aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
aload 0
getfield javax.swing.TablePrintable.header:Ljavax/swing/table/JTableHeader;
invokevirtual javax.swing.table.JTableHeader.getHeight:()I
putfield java.awt.Rectangle.height:I
13: StackMap locals: javax.swing.TablePrintable javax.swing.JTable javax.swing.JTable$PrintMode java.text.MessageFormat java.text.MessageFormat
StackMap stack:
aload 0
aload 2
putfield javax.swing.TablePrintable.printMode:Ljavax/swing/JTable$PrintMode;
14: aload 0
aload 3
putfield javax.swing.TablePrintable.headerFormat:Ljava/text/MessageFormat;
15: aload 0
aload 4
putfield javax.swing.TablePrintable.footerFormat:Ljava/text/MessageFormat;
16: aload 0
aload 1
invokevirtual javax.swing.JTable.getFont:()Ljava/awt/Font;
iconst_1
17: ldc 18.0
18: invokevirtual java.awt.Font.deriveFont:(IF)Ljava/awt/Font;
putfield javax.swing.TablePrintable.headerFont:Ljava/awt/Font;
19: aload 0
aload 1
invokevirtual javax.swing.JTable.getFont:()Ljava/awt/Font;
iconst_0
20: ldc 12.0
21: invokevirtual java.awt.Font.deriveFont:(IF)Ljava/awt/Font;
putfield javax.swing.TablePrintable.footerFont:Ljava/awt/Font;
22: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljavax/swing/TablePrintable;
0 23 1 table Ljavax/swing/JTable;
0 23 2 printMode Ljavax/swing/JTable$PrintMode;
0 23 3 headerFormat Ljava/text/MessageFormat;
0 23 4 footerFormat Ljava/text/MessageFormat;
MethodParameters:
Name Flags
table
printMode
headerFormat
footerFormat
public int print(java.awt.Graphics, java.awt.print.PageFormat, int);
descriptor: (Ljava/awt/Graphics;Ljava/awt/print/PageFormat;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=19, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual java.awt.print.PageFormat.getImageableWidth:()D
d2i
istore 4
start local 4 1: aload 2
invokevirtual java.awt.print.PageFormat.getImageableHeight:()D
d2i
istore 5
start local 5 2: iload 4
ifgt 4
3: new java.awt.print.PrinterException
dup
ldc "Width of printable area is too small."
invokespecial java.awt.print.PrinterException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: int int
StackMap stack:
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 3
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
astore 6
start local 6 5: aconst_null
astore 7
start local 7 6: aload 0
getfield javax.swing.TablePrintable.headerFormat:Ljava/text/MessageFormat;
ifnull 8
7: aload 0
getfield javax.swing.TablePrintable.headerFormat:Ljava/text/MessageFormat;
aload 6
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
astore 7
8: StackMap locals: java.lang.Object[] java.lang.String
StackMap stack:
aconst_null
astore 8
start local 8 9: aload 0
getfield javax.swing.TablePrintable.footerFormat:Ljava/text/MessageFormat;
ifnull 11
10: aload 0
getfield javax.swing.TablePrintable.footerFormat:Ljava/text/MessageFormat;
aload 6
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
astore 8
11: StackMap locals: java.lang.String
StackMap stack:
aconst_null
astore 9
start local 9 12: aconst_null
astore 10
start local 10 13: iconst_0
istore 11
start local 11 14: iconst_0
istore 12
start local 12 15: iload 5
istore 13
start local 13 16: aload 7
ifnull 23
17: aload 1
aload 0
getfield javax.swing.TablePrintable.headerFont:Ljava/awt/Font;
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
18: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
aload 7
19: aload 1
20: invokevirtual java.awt.FontMetrics.getStringBounds:(Ljava/lang/String;Ljava/awt/Graphics;)Ljava/awt/geom/Rectangle2D;
astore 9
21: aload 9
invokevirtual java.awt.geom.Rectangle2D.getHeight:()D
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 11
22: iload 13
iload 11
bipush 8
iadd
isub
istore 13
23: StackMap locals: javax.swing.TablePrintable java.awt.Graphics java.awt.print.PageFormat int int int java.lang.Object[] java.lang.String java.lang.String java.awt.geom.Rectangle2D java.awt.geom.Rectangle2D int int int
StackMap stack:
aload 8
ifnull 30
24: aload 1
aload 0
getfield javax.swing.TablePrintable.footerFont:Ljava/awt/Font;
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
25: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
aload 8
26: aload 1
27: invokevirtual java.awt.FontMetrics.getStringBounds:(Ljava/lang/String;Ljava/awt/Graphics;)Ljava/awt/geom/Rectangle2D;
astore 10
28: aload 10
invokevirtual java.awt.geom.Rectangle2D.getHeight:()D
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 12
29: iload 13
iload 12
bipush 8
iadd
isub
istore 13
30: StackMap locals:
StackMap stack:
iload 13
ifgt 32
31: new java.awt.print.PrinterException
dup
ldc "Height of printable area is too small."
invokespecial java.awt.print.PrinterException.<init>:(Ljava/lang/String;)V
athrow
32: StackMap locals:
StackMap stack:
dconst_1
dstore 14
start local 14 33: aload 0
getfield javax.swing.TablePrintable.printMode:Ljavax/swing/JTable$PrintMode;
getstatic javax.swing.JTable$PrintMode.FIT_WIDTH:Ljavax/swing/JTable$PrintMode;
if_acmpne 38
34: aload 0
getfield javax.swing.TablePrintable.totalColWidth:I
iload 4
if_icmple 38
35: getstatic javax.swing.TablePrintable.$assertionsDisabled:Z
ifne 36
iload 4
ifgt 36
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
36: StackMap locals: double
StackMap stack:
getstatic javax.swing.TablePrintable.$assertionsDisabled:Z
ifne 37
aload 0
getfield javax.swing.TablePrintable.totalColWidth:I
iconst_1
if_icmpgt 37
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
37: StackMap locals:
StackMap stack:
iload 4
i2d
aload 0
getfield javax.swing.TablePrintable.totalColWidth:I
i2d
ddiv
dstore 14
38: StackMap locals:
StackMap stack:
getstatic javax.swing.TablePrintable.$assertionsDisabled:Z
ifne 45
dload 14
dconst_0
dcmpl
ifgt 45
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
39: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.row:I
aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
invokevirtual javax.swing.JTable.getRowCount:()I
if_icmplt 41
aload 0
getfield javax.swing.TablePrintable.col:I
ifne 41
40: iconst_1
ireturn
41: StackMap locals:
StackMap stack:
iload 4
i2d
dload 14
ddiv
d2i
istore 16
start local 16 42: iload 13
aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.height:I
isub
i2d
dload 14
ddiv
d2i
istore 17
start local 17 43: aload 0
iload 16
iload 17
invokevirtual javax.swing.TablePrintable.findNextClip:(II)V
44: aload 0
dup
getfield javax.swing.TablePrintable.last:I
iconst_1
iadd
putfield javax.swing.TablePrintable.last:I
end local 17 end local 16 45: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.last:I
iload 3
if_icmplt 39
46: aload 1
invokevirtual java.awt.Graphics.create:()Ljava/awt/Graphics;
checkcast java.awt.Graphics2D
astore 16
start local 16 47: aload 16
aload 2
invokevirtual java.awt.print.PageFormat.getImageableX:()D
aload 2
invokevirtual java.awt.print.PageFormat.getImageableY:()D
invokevirtual java.awt.Graphics2D.translate:(DD)V
48: aload 8
ifnull 53
49: aload 16
invokevirtual java.awt.Graphics2D.getTransform:()Ljava/awt/geom/AffineTransform;
astore 17
start local 17 50: aload 16
iconst_0
iload 5
iload 12
isub
invokevirtual java.awt.Graphics2D.translate:(II)V
51: aload 0
aload 16
aload 8
aload 10
aload 0
getfield javax.swing.TablePrintable.footerFont:Ljava/awt/Font;
iload 4
invokevirtual javax.swing.TablePrintable.printText:(Ljava/awt/Graphics2D;Ljava/lang/String;Ljava/awt/geom/Rectangle2D;Ljava/awt/Font;I)V
52: aload 16
aload 17
invokevirtual java.awt.Graphics2D.setTransform:(Ljava/awt/geom/AffineTransform;)V
end local 17 53: StackMap locals: java.awt.Graphics2D
StackMap stack:
aload 7
ifnull 56
54: aload 0
aload 16
aload 7
aload 9
aload 0
getfield javax.swing.TablePrintable.headerFont:Ljava/awt/Font;
iload 4
invokevirtual javax.swing.TablePrintable.printText:(Ljava/awt/Graphics2D;Ljava/lang/String;Ljava/awt/geom/Rectangle2D;Ljava/awt/Font;I)V
55: aload 16
iconst_0
iload 11
bipush 8
iadd
invokevirtual java.awt.Graphics2D.translate:(II)V
56: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.x:I
57: aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.y:I
58: aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
iload 4
putfield java.awt.Rectangle.width:I
59: aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
iload 13
putfield java.awt.Rectangle.height:I
60: aload 16
aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
invokevirtual java.awt.Graphics2D.clip:(Ljava/awt/Shape;)V
61: dload 14
dconst_1
dcmpl
ifeq 64
62: aload 16
dload 14
dload 14
invokevirtual java.awt.Graphics2D.scale:(DD)V
63: goto 66
64: StackMap locals:
StackMap stack:
iload 4
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.width:I
isub
iconst_2
idiv
istore 18
start local 18 65: aload 16
iload 18
iconst_0
invokevirtual java.awt.Graphics2D.translate:(II)V
end local 18 66: StackMap locals:
StackMap stack:
aload 16
invokevirtual java.awt.Graphics2D.getTransform:()Ljava/awt/geom/AffineTransform;
astore 17
start local 17 67: aload 16
invokevirtual java.awt.Graphics2D.getClip:()Ljava/awt/Shape;
astore 18
start local 18 68: aload 0
getfield javax.swing.TablePrintable.header:Ljavax/swing/table/JTableHeader;
ifnull 77
69: aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.x:I
putfield java.awt.Rectangle.x:I
70: aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.width:I
putfield java.awt.Rectangle.width:I
71: aload 16
aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.x:I
ineg
iconst_0
invokevirtual java.awt.Graphics2D.translate:(II)V
72: aload 16
aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
invokevirtual java.awt.Graphics2D.clip:(Ljava/awt/Shape;)V
73: aload 0
getfield javax.swing.TablePrintable.header:Ljavax/swing/table/JTableHeader;
aload 16
invokevirtual javax.swing.table.JTableHeader.print:(Ljava/awt/Graphics;)V
74: aload 16
aload 17
invokevirtual java.awt.Graphics2D.setTransform:(Ljava/awt/geom/AffineTransform;)V
75: aload 16
aload 18
invokevirtual java.awt.Graphics2D.setClip:(Ljava/awt/Shape;)V
76: aload 16
iconst_0
aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.height:I
invokevirtual java.awt.Graphics2D.translate:(II)V
77: StackMap locals: java.awt.geom.AffineTransform java.awt.Shape
StackMap stack:
aload 16
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.x:I
ineg
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.y:I
ineg
invokevirtual java.awt.Graphics2D.translate:(II)V
78: aload 16
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
invokevirtual java.awt.Graphics2D.clip:(Ljava/awt/Shape;)V
79: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
aload 16
invokevirtual javax.swing.JTable.print:(Ljava/awt/Graphics;)V
80: aload 16
aload 17
invokevirtual java.awt.Graphics2D.setTransform:(Ljava/awt/geom/AffineTransform;)V
81: aload 16
aload 18
invokevirtual java.awt.Graphics2D.setClip:(Ljava/awt/Shape;)V
82: aload 16
getstatic java.awt.Color.BLACK:Ljava/awt/Color;
invokevirtual java.awt.Graphics2D.setColor:(Ljava/awt/Color;)V
83: aload 16
iconst_0
iconst_0
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.width:I
aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.height:I
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.height:I
iadd
invokevirtual java.awt.Graphics2D.drawRect:(IIII)V
84: aload 16
invokevirtual java.awt.Graphics2D.dispose:()V
85: iconst_0
ireturn
end local 18 end local 17 end local 16 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 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 86 0 this Ljavax/swing/TablePrintable;
0 86 1 graphics Ljava/awt/Graphics;
0 86 2 pageFormat Ljava/awt/print/PageFormat;
0 86 3 pageIndex I
1 86 4 imgWidth I
2 86 5 imgHeight I
5 86 6 pageNumber [Ljava/lang/Object;
6 86 7 headerText Ljava/lang/String;
9 86 8 footerText Ljava/lang/String;
12 86 9 hRect Ljava/awt/geom/Rectangle2D;
13 86 10 fRect Ljava/awt/geom/Rectangle2D;
14 86 11 headerTextSpace I
15 86 12 footerTextSpace I
16 86 13 availableSpace I
33 86 14 sf D
42 45 16 scaledWidth I
43 45 17 scaledHeight I
47 86 16 g2d Ljava/awt/Graphics2D;
50 53 17 oldTrans Ljava/awt/geom/AffineTransform;
67 86 17 oldTrans Ljava/awt/geom/AffineTransform;
65 66 18 diff I
68 86 18 oldClip Ljava/awt/Shape;
Exceptions:
throws java.awt.print.PrinterException
MethodParameters:
Name Flags
graphics
pageFormat
pageIndex
private void printText(java.awt.Graphics2D, java.lang.String, java.awt.geom.Rectangle2D, java.awt.Font, int);
descriptor: (Ljava/awt/Graphics2D;Ljava/lang/String;Ljava/awt/geom/Rectangle2D;Ljava/awt/Font;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 3
invokevirtual java.awt.geom.Rectangle2D.getWidth:()D
iload 5
i2d
dcmpg
ifge 3
1: iload 5
i2d
aload 3
invokevirtual java.awt.geom.Rectangle2D.getWidth:()D
dsub
ldc 2.0
ddiv
d2i
istore 6
start local 6 2: goto 7
end local 6 StackMap locals:
StackMap stack:
3: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
invokevirtual javax.swing.JTable.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
ifeq 6
4: iconst_0
istore 6
start local 6 5: goto 7
end local 6 6: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.awt.geom.Rectangle2D.getWidth:()D
invokestatic java.lang.Math.ceil:(D)D
iload 5
i2d
dsub
d2i
ineg
istore 6
start local 6 7: StackMap locals: int
StackMap stack:
aload 3
invokevirtual java.awt.geom.Rectangle2D.getY:()D
invokestatic java.lang.Math.abs:(D)D
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 7
start local 7 8: aload 1
getstatic java.awt.Color.BLACK:Ljava/awt/Color;
invokevirtual java.awt.Graphics2D.setColor:(Ljava/awt/Color;)V
9: aload 1
aload 4
invokevirtual java.awt.Graphics2D.setFont:(Ljava/awt/Font;)V
10: aload 1
aload 2
iload 6
iload 7
invokevirtual java.awt.Graphics2D.drawString:(Ljava/lang/String;II)V
11: return
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 12 0 this Ljavax/swing/TablePrintable;
0 12 1 g2d Ljava/awt/Graphics2D;
0 12 2 text Ljava/lang/String;
0 12 3 rect Ljava/awt/geom/Rectangle2D;
0 12 4 font Ljava/awt/Font;
0 12 5 imgWidth I
2 3 6 tx I
5 6 6 tx I
7 12 6 tx I
8 12 7 ty I
MethodParameters:
Name Flags
g2d
text
rect
font
imgWidth
private void findNextClip(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
invokevirtual javax.swing.JTable.getComponentOrientation:()Ljava/awt/ComponentOrientation;
invokevirtual java.awt.ComponentOrientation.isLeftToRight:()Z
istore 3
start local 3 1: aload 0
getfield javax.swing.TablePrintable.col:I
ifne 17
2: iload 3
ifeq 5
3: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.x:I
4: goto 6
5: StackMap locals: int
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
aload 0
getfield javax.swing.TablePrintable.totalColWidth:I
putfield java.awt.Rectangle.x:I
6: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
dup
getfield java.awt.Rectangle.y:I
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.height:I
iadd
putfield java.awt.Rectangle.y:I
7: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.width:I
8: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.height:I
9: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
invokevirtual javax.swing.JTable.getRowCount:()I
istore 4
start local 4 10: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
aload 0
getfield javax.swing.TablePrintable.row:I
invokevirtual javax.swing.JTable.getRowHeight:(I)I
istore 5
start local 5 11: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
dup
getfield java.awt.Rectangle.height:I
iload 5
iadd
putfield java.awt.Rectangle.height:I
12: aload 0
dup
getfield javax.swing.TablePrintable.row:I
iconst_1
iadd
dup_x1
putfield javax.swing.TablePrintable.row:I
iload 4
if_icmplt 14
13: goto 17
14: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
aload 0
getfield javax.swing.TablePrintable.row:I
invokevirtual javax.swing.JTable.getRowHeight:(I)I
istore 5
15: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.height:I
iload 5
iadd
iload 2
16: if_icmple 11
end local 5 end local 4 17: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.printMode:Ljavax/swing/JTable$PrintMode;
getstatic javax.swing.JTable$PrintMode.FIT_WIDTH:Ljavax/swing/JTable$PrintMode;
if_acmpne 21
18: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.x:I
19: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
aload 0
getfield javax.swing.TablePrintable.totalColWidth:I
putfield java.awt.Rectangle.width:I
20: return
21: StackMap locals:
StackMap stack:
iload 3
ifeq 23
22: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
dup
getfield java.awt.Rectangle.x:I
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.width:I
iadd
putfield java.awt.Rectangle.x:I
23: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.width:I
24: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
invokevirtual javax.swing.JTable.getColumnCount:()I
istore 4
start local 4 25: aload 0
getfield javax.swing.TablePrintable.colModel:Ljavax/swing/table/TableColumnModel;
aload 0
getfield javax.swing.TablePrintable.col:I
invokeinterface javax.swing.table.TableColumnModel.getColumn:(I)Ljavax/swing/table/TableColumn;
invokevirtual javax.swing.table.TableColumn.getWidth:()I
istore 5
start local 5 26: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
dup
getfield java.awt.Rectangle.width:I
iload 5
iadd
putfield java.awt.Rectangle.width:I
27: iload 3
ifne 29
28: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
dup
getfield java.awt.Rectangle.x:I
iload 5
isub
putfield java.awt.Rectangle.x:I
29: StackMap locals:
StackMap stack:
aload 0
dup
getfield javax.swing.TablePrintable.col:I
iconst_1
iadd
dup_x1
putfield javax.swing.TablePrintable.col:I
iload 4
if_icmplt 32
30: aload 0
iconst_0
putfield javax.swing.TablePrintable.col:I
31: goto 35
32: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.colModel:Ljavax/swing/table/TableColumnModel;
aload 0
getfield javax.swing.TablePrintable.col:I
invokeinterface javax.swing.table.TableColumnModel.getColumn:(I)Ljavax/swing/table/TableColumn;
invokevirtual javax.swing.table.TableColumn.getWidth:()I
istore 5
33: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.width:I
iload 5
iadd
iload 1
34: if_icmple 26
35: StackMap locals:
StackMap stack:
return
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 36 0 this Ljavax/swing/TablePrintable;
0 36 1 pw I
0 36 2 ph I
1 36 3 ltr Z
10 17 4 rowCount I
11 17 5 rowHeight I
25 36 4 colCount I
26 36 5 colWidth I
MethodParameters:
Name Flags
pw
ph
}
SourceFile: "TablePrintable.java"
InnerClasses:
public final PrintMode = javax.swing.JTable$PrintMode of javax.swing.JTable