📄 panerecord.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: PaneRecord.java
package jxl.write.biff;
import jxl.biff.*;
class PaneRecord extends WritableRecordData
{
private int rowsVisible;
private int columnsVisible;
private static final int topLeftPane = 3;
private static final int bottomLeftPane = 2;
private static final int topRightPane = 1;
private static final int bottomRightPane = 0;
public PaneRecord(int cols, int rows)
{
super(Type.PANE);
rowsVisible = rows;
columnsVisible = cols;
}
public byte[] getData()
{
byte data[] = new byte[10];
IntegerHelper.getTwoBytes(columnsVisible, data, 0);
IntegerHelper.getTwoBytes(rowsVisible, data, 2);
if(rowsVisible > 0)
IntegerHelper.getTwoBytes(rowsVisible, data, 4);
if(columnsVisible > 0)
IntegerHelper.getTwoBytes(columnsVisible, data, 6);
int activePane = 3;
if(rowsVisible > 0 && columnsVisible == 0)
activePane = 2;
else
if(rowsVisible == 0 && columnsVisible > 0)
activePane = 1;
else
if(rowsVisible > 0 && columnsVisible > 0)
activePane = 0;
IntegerHelper.getTwoBytes(activePane, data, 8);
return data;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -