📄 clientanchor.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: ClientAnchor.java
package jxl.biff.drawing;
import common.Logger;
import jxl.biff.IntegerHelper;
// Referenced classes of package jxl.biff.drawing:
// EscherAtom, EscherRecordType, EscherRecordData
class ClientAnchor extends EscherAtom
{
private static final Logger logger;
private byte data[];
private double x1;
private double y1;
private double x2;
private double y2;
static Class class$jxl$biff$drawing$ClientAnchor; /* synthetic field */
public ClientAnchor(EscherRecordData erd)
{
super(erd);
byte bytes[] = getBytes();
int x1Cell = IntegerHelper.getInt(bytes[2], bytes[3]);
int x1Fraction = IntegerHelper.getInt(bytes[4], bytes[5]);
x1 = (double)x1Cell + (double)x1Fraction / 1024D;
int y1Cell = IntegerHelper.getInt(bytes[6], bytes[7]);
int y1Fraction = IntegerHelper.getInt(bytes[8], bytes[9]);
y1 = (double)y1Cell + (double)y1Fraction / 256D;
int x2Cell = IntegerHelper.getInt(bytes[10], bytes[11]);
int x2Fraction = IntegerHelper.getInt(bytes[12], bytes[13]);
x2 = (double)x2Cell + (double)x2Fraction / 1024D;
int y2Cell = IntegerHelper.getInt(bytes[14], bytes[15]);
int y2Fraction = IntegerHelper.getInt(bytes[16], bytes[17]);
y2 = (double)y2Cell + (double)y2Fraction / 256D;
}
public ClientAnchor(double x1, double y1, double x2, double y2)
{
super(EscherRecordType.CLIENT_ANCHOR);
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
}
byte[] getData()
{
data = new byte[18];
IntegerHelper.getTwoBytes(1, data, 0);
IntegerHelper.getTwoBytes((int)x1, data, 2);
int x1fraction = (int)((x1 - (double)(int)x1) * 1024D);
IntegerHelper.getTwoBytes(x1fraction, data, 4);
IntegerHelper.getTwoBytes((int)y1, data, 6);
int y1fraction = (int)((y1 - (double)(int)y1) * 256D);
IntegerHelper.getTwoBytes(y1fraction, data, 8);
IntegerHelper.getTwoBytes((int)x2, data, 10);
int x2fraction = (int)((x2 - (double)(int)x2) * 1024D);
IntegerHelper.getTwoBytes(x2fraction, data, 12);
IntegerHelper.getTwoBytes((int)y2, data, 14);
int y2fraction = (int)((y2 - (double)(int)y2) * 256D);
IntegerHelper.getTwoBytes(y2fraction, data, 16);
return setHeaderData(data);
}
double getX1()
{
return x1;
}
double getY1()
{
return y1;
}
double getX2()
{
return x2;
}
double getY2()
{
return y2;
}
static Class class$(String x0)
{
return Class.forName(x0);
ClassNotFoundException x1;
x1;
throw new NoClassDefFoundError(x1.getMessage());
}
static
{
logger = Logger.getLogger(class$jxl$biff$drawing$ClientAnchor != null ? class$jxl$biff$drawing$ClientAnchor : (class$jxl$biff$drawing$ClientAnchor = class$("jxl.biff.drawing.ClientAnchor")));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -