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=26, 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 47
dload 14
dconst_0
dcmpl
ifgt 47
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
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
invokevirtual javax.swing.JTable.getBounds:()Ljava/awt/Rectangle;
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
invokevirtual java.awt.Rectangle.intersects:(Ljava/awt/Rectangle;)Z
ifne 46
45: iconst_1
ireturn
46: StackMap locals: int int
StackMap stack:
aload 0
dup
getfield javax.swing.TablePrintable.last:I
iconst_1
iadd
putfield javax.swing.TablePrintable.last:I
end local 17 end local 16 47: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.last:I
iload 3
if_icmplt 39
48: aload 1
invokevirtual java.awt.Graphics.create:()Ljava/awt/Graphics;
checkcast java.awt.Graphics2D
astore 16
start local 16 49: 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
50: aload 8
ifnull 55
51: aload 16
invokevirtual java.awt.Graphics2D.getTransform:()Ljava/awt/geom/AffineTransform;
astore 17
start local 17 52: aload 16
iconst_0
iload 5
iload 12
isub
invokevirtual java.awt.Graphics2D.translate:(II)V
53: 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
54: aload 16
aload 17
invokevirtual java.awt.Graphics2D.setTransform:(Ljava/awt/geom/AffineTransform;)V
end local 17 55: StackMap locals: java.awt.Graphics2D
StackMap stack:
aload 7
ifnull 58
56: 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
57: aload 16
iconst_0
iload 11
bipush 8
iadd
invokevirtual java.awt.Graphics2D.translate:(II)V
58: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.x:I
59: aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
iconst_0
putfield java.awt.Rectangle.y:I
60: aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
iload 4
putfield java.awt.Rectangle.width:I
61: aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
iload 13
putfield java.awt.Rectangle.height:I
62: aload 16
aload 0
getfield javax.swing.TablePrintable.tempRect:Ljava/awt/Rectangle;
invokevirtual java.awt.Graphics2D.clip:(Ljava/awt/Shape;)V
63: dload 14
dconst_1
dcmpl
ifeq 66
64: aload 16
dload 14
dload 14
invokevirtual java.awt.Graphics2D.scale:(DD)V
65: goto 68
66: 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 67: aload 16
iload 18
iconst_0
invokevirtual java.awt.Graphics2D.translate:(II)V
end local 18 68: StackMap locals:
StackMap stack:
aload 16
invokevirtual java.awt.Graphics2D.getTransform:()Ljava/awt/geom/AffineTransform;
astore 17
start local 17 69: aload 16
invokevirtual java.awt.Graphics2D.getClip:()Ljava/awt/Shape;
astore 18
start local 18 70: aload 0
getfield javax.swing.TablePrintable.header:Ljavax/swing/table/JTableHeader;
ifnull 79
71: 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
72: 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
73: 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
74: aload 16
aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
invokevirtual java.awt.Graphics2D.clip:(Ljava/awt/Shape;)V
75: aload 0
getfield javax.swing.TablePrintable.header:Ljavax/swing/table/JTableHeader;
aload 16
invokevirtual javax.swing.table.JTableHeader.print:(Ljava/awt/Graphics;)V
76: aload 16
aload 17
invokevirtual java.awt.Graphics2D.setTransform:(Ljava/awt/geom/AffineTransform;)V
77: aload 16
aload 18
invokevirtual java.awt.Graphics2D.setClip:(Ljava/awt/Shape;)V
78: 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
79: 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
80: aload 16
aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
invokevirtual java.awt.Graphics2D.clip:(Ljava/awt/Shape;)V
81: aload 0
getfield javax.swing.TablePrintable.printMode:Ljavax/swing/JTable$PrintMode;
getstatic javax.swing.JTable$PrintMode.FIT_WIDTH:Ljavax/swing/JTable$PrintMode;
if_acmpne 83
82: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
ldc "Table.printMode"
getstatic javax.swing.JTable$PrintMode.FIT_WIDTH:Ljavax/swing/JTable$PrintMode;
invokevirtual javax.swing.JTable.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
83: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
aload 16
invokevirtual javax.swing.JTable.print:(Ljava/awt/Graphics;)V
84: aload 16
aload 17
invokevirtual java.awt.Graphics2D.setTransform:(Ljava/awt/geom/AffineTransform;)V
85: aload 16
aload 18
invokevirtual java.awt.Graphics2D.setClip:(Ljava/awt/Shape;)V
86: aload 16
getstatic java.awt.Color.BLACK:Ljava/awt/Color;
invokevirtual java.awt.Graphics2D.setColor:(Ljava/awt/Color;)V
87: aload 0
getfield javax.swing.TablePrintable.clip:Ljava/awt/Rectangle;
aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
invokevirtual javax.swing.JTable.getBounds:()Ljava/awt/Rectangle;
invokevirtual java.awt.Rectangle.intersection:(Ljava/awt/Rectangle;)Ljava/awt/Rectangle;
astore 19
start local 19 88: aload 19
invokevirtual java.awt.Rectangle.getLocation:()Ljava/awt/Point;
astore 20
start local 20 89: new java.awt.Point
dup
aload 19
getfield java.awt.Rectangle.x:I
aload 19
getfield java.awt.Rectangle.width:I
iadd
90: aload 19
getfield java.awt.Rectangle.y:I
aload 19
getfield java.awt.Rectangle.height:I
iadd
91: invokespecial java.awt.Point.<init>:(II)V
astore 21
start local 21 92: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
aload 20
invokevirtual javax.swing.JTable.rowAtPoint:(Ljava/awt/Point;)I
istore 22
start local 22 93: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
aload 21
invokevirtual javax.swing.JTable.rowAtPoint:(Ljava/awt/Point;)I
istore 23
start local 23 94: iload 22
iconst_m1
if_icmpne 96
95: iconst_0
istore 22
96: 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 double java.awt.Graphics2D java.awt.geom.AffineTransform java.awt.Shape java.awt.Rectangle java.awt.Point java.awt.Point int int
StackMap stack:
iload 23
iconst_m1
if_icmpne 98
97: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
invokevirtual javax.swing.JTable.getRowCount:()I
istore 23
98: StackMap locals:
StackMap stack:
iconst_0
istore 24
start local 24 99: iload 22
istore 25
start local 25 100: goto 103
101: StackMap locals: int int
StackMap stack:
iload 24
aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
iload 25
invokevirtual javax.swing.JTable.getRowHeight:(I)I
iadd
istore 24
102: iinc 25 1
StackMap locals:
StackMap stack:
103: iload 25
iload 23
if_icmplt 101
end local 25 104: aload 0
getfield javax.swing.TablePrintable.printMode:Ljavax/swing/JTable$PrintMode;
getstatic javax.swing.JTable$PrintMode.FIT_WIDTH:Ljavax/swing/JTable$PrintMode;
if_acmpne 107
105: 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
iload 24
iadd
invokevirtual java.awt.Graphics2D.drawRect:(IIII)V
106: goto 108
107: StackMap locals:
StackMap stack:
aload 16
iconst_0
iconst_0
aload 19
getfield java.awt.Rectangle.width:I
aload 0
getfield javax.swing.TablePrintable.hclip:Ljava/awt/Rectangle;
getfield java.awt.Rectangle.height:I
iload 24
iadd
invokevirtual java.awt.Graphics2D.drawRect:(IIII)V
108: 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 110
109: aload 0
getfield javax.swing.TablePrintable.table:Ljavax/swing/JTable;
ldc "Table.printMode"
aconst_null
invokevirtual javax.swing.JTable.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
110: StackMap locals:
StackMap stack:
aload 16
invokevirtual java.awt.Graphics2D.dispose:()V
111: iconst_0
ireturn
end local 24 end local 23 end local 22 end local 21 end local 20 end local 19 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 112 0 this Ljavax/swing/TablePrintable;
0 112 1 graphics Ljava/awt/Graphics;
0 112 2 pageFormat Ljava/awt/print/PageFormat;
0 112 3 pageIndex I
1 112 4 imgWidth I
2 112 5 imgHeight I
5 112 6 pageNumber [Ljava/lang/Object;
6 112 7 headerText Ljava/lang/String;
9 112 8 footerText Ljava/lang/String;
12 112 9 hRect Ljava/awt/geom/Rectangle2D;
13 112 10 fRect Ljava/awt/geom/Rectangle2D;
14 112 11 headerTextSpace I
15 112 12 footerTextSpace I
16 112 13 availableSpace I
33 112 14 sf D
42 47 16 scaledWidth I
43 47 17 scaledHeight I
49 112 16 g2d Ljava/awt/Graphics2D;
52 55 17 oldTrans Ljava/awt/geom/AffineTransform;
69 112 17 oldTrans Ljava/awt/geom/AffineTransform;
67 68 18 diff I
70 112 18 oldClip Ljava/awt/Shape;
88 112 19 visibleBounds Ljava/awt/Rectangle;
89 112 20 upperLeft Ljava/awt/Point;
92 112 21 lowerRight Ljava/awt/Point;
93 112 22 rMin I
94 112 23 rMax I
99 112 24 rowHeight I
100 104 25 visrow I
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