first commit
This commit is contained in:
23
hrmsEjb/jxl/write/biff/SCLRecord.java
Normal file
23
hrmsEjb/jxl/write/biff/SCLRecord.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package jxl.write.biff;
|
||||
|
||||
import jxl.biff.IntegerHelper;
|
||||
import jxl.biff.Type;
|
||||
import jxl.biff.WritableRecordData;
|
||||
|
||||
class SCLRecord extends WritableRecordData {
|
||||
private int zoomFactor;
|
||||
|
||||
public SCLRecord(int zf) {
|
||||
super(Type.SCL);
|
||||
this.zoomFactor = zf;
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
byte[] data = new byte[4];
|
||||
int numerator = this.zoomFactor;
|
||||
int denominator = 100;
|
||||
IntegerHelper.getTwoBytes(numerator, data, 0);
|
||||
IntegerHelper.getTwoBytes(denominator, data, 2);
|
||||
return data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user